Example #1
0
 public function __construct(PriceModule $module)
 {
     $defRoles = array(new Ab_UserRole(PriceAction::VIEW, Ab_UserGroup::GUEST), new Ab_UserRole(PriceAction::VIEW, Ab_UserGroup::REGISTERED), new Ab_UserRole(PriceAction::VIEW, Ab_UserGroup::ADMIN), new Ab_UserRole(PriceAction::WRITE, Ab_UserGroup::ADMIN), new Ab_UserRole(PriceAction::ADMIN, Ab_UserGroup::ADMIN));
     parent::__construct($module, $defRoles);
 }
Example #2
0
 public function __construct(TagModule $module)
 {
     $defRoles = array(new Ab_UserRole(TagAction::ADMIN, Ab_UserGroup::ADMIN));
     parent::__construct($module, $defRoles);
 }