Пример #1
0
 public function createAuthorizations(ACL $acl)
 {
     $acl->allow($this, new Actions([Actions::VIEW, Actions::EDIT]), $this->article);
 }
Пример #2
0
 public function createAuthorizations(ACL $acl)
 {
     $acl->allow($this, new Actions([Actions::VIEW]), $this->category);
 }
Пример #3
0
 public function createAuthorizations(ACL $acl)
 {
     $acl->allow($this, new Actions([Actions::VIEW, Actions::EDIT]), new ClassResource('Tests\\MyCLabs\\ACL\\Performance\\Model\\Article'));
 }
Пример #4
0
 public function createAuthorizations(ACL $acl)
 {
     $acl->allow($this, Actions::all(), $this->account);
 }