revert false fix Ticket policy
This commit is contained in:
parent
11c45805fa
commit
1fd5893f05
1 changed files with 2 additions and 8 deletions
|
|
@ -33,14 +33,8 @@ class TicketPolicy extends RootPolicy
|
|||
*/
|
||||
$this->policies = [
|
||||
'ticket' => [
|
||||
'viewAny' => StaticRules::or([
|
||||
URR::make('userIsAdmin', $user),
|
||||
SSR::make('userSitesHasTicket', $user, $model)
|
||||
]),
|
||||
'view' => StaticRules::or([
|
||||
URR::make('userIsAdmin', $user),
|
||||
SSR::make('userSitesHasTicket', $user, $model)
|
||||
]),
|
||||
'viewAny' => URR::make('allowEveryOne'),
|
||||
'view' => URR::make('allowEveryOne'),
|
||||
'update' => StaticRules::or([
|
||||
URR::make('userIsAdmin', $user),
|
||||
SSR::make('userSitesHasTicket', $user, $model)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue