From bcf9d2f75cc407d1c5525f67502d913fc1f2e1b7 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 25 Sep 2018 00:36:43 -0700 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20require=20statuslabel=20view=20?= =?UTF-8?q?to=20check=20for=20deployable=20status?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Api/StatuslabelsController.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/Http/Controllers/Api/StatuslabelsController.php b/app/Http/Controllers/Api/StatuslabelsController.php index ba7854147b..4d5f9d0167 100644 --- a/app/Http/Controllers/Api/StatuslabelsController.php +++ b/app/Http/Controllers/Api/StatuslabelsController.php @@ -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'; }