コード例 #1
0
ファイル: ArticleEditorRole.php プロジェクト: gbelmm/ACL
 public function createAuthorizations(ACL $acl)
 {
     $acl->allow($this, new Actions([Actions::VIEW, Actions::EDIT]), $this->article);
 }
コード例 #2
0
ファイル: CategoryManagerRole.php プロジェクト: gbelmm/ACL
 public function createAuthorizations(ACL $acl)
 {
     $acl->allow($this, new Actions([Actions::VIEW]), $this->category);
 }
コード例 #3
0
ファイル: AllArticlesEditorRole.php プロジェクト: gbelmm/ACL
 public function createAuthorizations(ACL $acl)
 {
     $acl->allow($this, new Actions([Actions::VIEW, Actions::EDIT]), new ClassResource('Tests\\MyCLabs\\ACL\\Performance\\Model\\Article'));
 }
コード例 #4
0
ファイル: AccountAdminRole.php プロジェクト: gbelmm/ACL
 public function createAuthorizations(ACL $acl)
 {
     $acl->allow($this, Actions::all(), $this->account);
 }