Check if user can see assets in statuslabels gate

This commit is contained in:
snipe 2018-10-09 16:34:12 -07:00
parent ec7245965f
commit d4fa81301d

View file

@ -238,8 +238,7 @@ class StatuslabelsController extends Controller
*/
public function checkIfDeployable($id) {
$statuslabel = Statuslabel::findOrFail($id);
$this->authorize('view', $statuslabel);
$this->authorize('view', Asset::class);
if ($statuslabel->getStatuslabelType()=='deployable') {
return '1';