Fixed parse error

This commit is contained in:
snipe 2020-08-24 14:30:43 -07:00
parent 0658f17359
commit 5aeac3c9e0
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC

View file

@ -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;