Log.update policy change is owend and role dev instead of or
This commit is contained in:
parent
b4bafc712b
commit
b3e360e0d2
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ class LogPolicy extends RootPolicy
|
|||
'log' => [
|
||||
'viewAny' => URR::make('userIsAdmin', $user),
|
||||
'view' => URR::make('denyEveryOne'),
|
||||
'update' => StaticRules::or([
|
||||
'update' => StaticRules::and([
|
||||
URR::make('userIsDev', $user),
|
||||
LogStaticRules::make('logIsOwnedByUser', $user, $model)
|
||||
]),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue