Ticket 329 deny answer to archive ticket
This commit is contained in:
parent
edc7af6cca
commit
ba55add6d7
1 changed files with 1 additions and 10 deletions
|
|
@ -45,16 +45,7 @@ class TicketPolicy extends RootPolicy
|
|||
SSR::make('userSitesHasTicket', $user, $model)
|
||||
]),
|
||||
'suscribeToTicket' => TicketStaticRules::make('ticketIsNotArchived', $model),
|
||||
'createMessage' => StaticRules::or([
|
||||
StaticRules::or([
|
||||
URR::make('userIsAdmin', $user),
|
||||
SSR::make('userSitesHasTicket', $user, $model)
|
||||
]),
|
||||
StaticRules::and([
|
||||
TicketStaticRules::make('ticketIsNotArchived', $model),
|
||||
SSR::make('userSitesHasTicket', $user, $model)
|
||||
])
|
||||
])
|
||||
'createMessage' => TicketStaticRules::make('ticketIsNotArchived', $model)
|
||||
]
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue