Fixed parse error
This commit is contained in:
parent
0658f17359
commit
5aeac3c9e0
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class DepartmentsTransformer
|
||||||
|
|
||||||
$permissions_array['available_actions'] = [
|
$permissions_array['available_actions'] = [
|
||||||
'update' => Gate::allows('update', Department::class),
|
'update' => Gate::allows('update', Department::class),
|
||||||
'delete' => (Gate::allows('delete', Department::class) && ($department->users_count==0),
|
'delete' => (Gate::allows('delete', Department::class) && ($department->users_count==0)),
|
||||||
];
|
];
|
||||||
|
|
||||||
$array += $permissions_array;
|
$array += $permissions_array;
|
||||||
|
|
Loading…
Add table
Reference in a new issue