Added new policy to create private message
This commit is contained in:
parent
0be5816bf7
commit
5fa24d69c8
1 changed files with 4 additions and 0 deletions
|
|
@ -46,6 +46,10 @@ class TicketPolicy extends RootPolicy
|
|||
]),
|
||||
'suscribeToTicket' => TicketStaticRules::make('ticketIsNotArchived', $model),
|
||||
'createMessage' => TicketStaticRules::make('ticketIsNotArchived', $model),
|
||||
'createPrivateMessage' => StaticRules::or([
|
||||
URR::make('userIsAdmin', $user),
|
||||
TicketStaticRules::make('ticketIsNotArchived', $model),
|
||||
]),
|
||||
'updateMessage' => StaticRules::or([
|
||||
URR::make('userIsAdmin', $user),
|
||||
TicketStaticRules::make('ticketIsNotArchived', $model),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue