Log.update policy change is owend and role dev instead of or

This commit is contained in:
Jérémy Munsch 2021-07-27 12:34:45 +02:00
parent b4bafc712b
commit b3e360e0d2

View file

@ -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)
]),