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