|
@@ -365,7 +365,7 @@ discard block |
|
|
block discarded – undo |
|
365
|
365
|
|
|
366
|
366
|
$permissionObjects = $this->buildPermissionsArray($permissions, $action); |
|
367
|
367
|
|
|
368
|
|
- switch($action) { |
|
|
368
|
+ switch ($action) { |
|
369
|
369
|
case 'add': |
|
370
|
370
|
// Add and negate call the same method |
|
371
|
371
|
case 'negate': |
|
@@ -460,7 +460,7 @@ discard block |
|
|
block discarded – undo |
|
460
|
460
|
if (is_a($this, config('laravel-acl.level'))) { |
|
461
|
461
|
$this->clearPermissions(); |
|
462
|
462
|
|
|
463
|
|
- config('laravel-acl.permission', Permission::class)::whereIn('id', array_map(function ($permission) { |
|
|
463
|
+ config('laravel-acl.permission', Permission::class)::whereIn('id', array_map(function($permission) { |
|
464
|
464
|
return $permission->id; |
|
465
|
465
|
}, $permissionObjects)) |
|
466
|
466
|
->update(['level_id' => $this->id]); |
Please login to merge, or discard this patch.