/** * Check - specified permission is allowed or not * * @param string $code Permission code * * @return boolean */ public function isPermissionAllowed($code) { return $this->getEnabled() && parent::isPermissionAllowed($code); }
/** * {@inheritDoc} */ public function isPermissionAllowed($code) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'isPermissionAllowed', array($code)); return parent::isPermissionAllowed($code); }