Passed
Push — master ( 8475f2...95bd7d )
by Quim González
03:21
created
app/Http/Requests/DestroyTask.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,12 @@
 block discarded – undo
18 18
     public function authorize()
19 19
     {
20 20
 
21
-        if($this->HasPermissionTo('destroy-tasks')) return true;
22
-        if ($this->owns('tasks')) return true;
21
+        if($this->HasPermissionTo('destroy-tasks')) {
22
+            return true;
23
+        }
24
+        if ($this->owns('tasks')) {
25
+            return true;
26
+        }
23 27
         return false;
24 28
 
25 29
         //return Auth::user()->HasPermissionTo('destroy-tasks');
Please login to merge, or discard this patch.