Don’t require statuslabel view to check for deployable status

This commit is contained in:
snipe 2018-09-25 00:36:43 -07:00
parent f85e3edfc7
commit bcf9d2f75c

View file

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