update TicketPolicy
This commit is contained in:
parent
36623972ac
commit
26eb53a682
1 changed files with 1 additions and 4 deletions
|
|
@ -46,10 +46,7 @@ class TicketPolicy extends RootPolicy
|
|||
]),
|
||||
'suscribeToTicket' => TicketStaticRules::make('ticketIsNotArchived', $model),
|
||||
'createMessage' => TicketStaticRules::make('ticketIsNotArchived', $model),
|
||||
'createPrivateMessage' => StaticRules::and([
|
||||
URR::make('userIsAdmin', $user),
|
||||
TicketStaticRules::make('ticketIsNotArchived', $model),
|
||||
]),
|
||||
'createPrivateMessage' => URR::make('userIsAdmin', $user),
|
||||
'updateMessage' => StaticRules::or([
|
||||
URR::make('userIsAdmin', $user),
|
||||
TicketStaticRules::make('ticketIsNotArchived', $model),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue