예제 #1
0
파일: Role.php 프로젝트: kirkbauer2/kirkxc
 /**
  * Check - specified permission is allowed or not
  *
  * @param string $code Permission code
  *
  * @return boolean
  */
 public function isPermissionAllowed($code)
 {
     return $this->getEnabled() && parent::isPermissionAllowed($code);
 }
예제 #2
0
 /**
  * {@inheritDoc}
  */
 public function isPermissionAllowed($code)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'isPermissionAllowed', array($code));
     return parent::isPermissionAllowed($code);
 }