示例#1
0
 /**
  * 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);
 }