mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fixed parse error
This commit is contained in:
parent
0658f17359
commit
5aeac3c9e0
|
@ -48,7 +48,7 @@ class DepartmentsTransformer
|
|||
|
||||
$permissions_array['available_actions'] = [
|
||||
'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;
|
||||
|
|
Loading…
Reference in a new issue