static function isActionGlobalAllowed($sAction) { return AnwAcls::isActionGlobalAllowed(self::getUser(), $sAction); }
function isAdminAllowed() { return AnwAcls::isAdminAllowed($this); }
/** * @throws AnwUnexpectedException */ static function loadDriver() { AnwDebug::startbench("Acls driver init"); self::$oDriver = AnwAclsDriver::loadComponent(AnwComponent::globalCfgDriverAcls()); AnwDebug::stopbench("Acls driver init"); }
protected function grantUserAdmin($oUser) { //grant admin privileges AnwAcls::grantUserAdminOnInstall($oUser); //open the session AnwSessions::login($oUser, false); //squeezing AnwCurrentSession... //update step status $this->getActionInstall()->updateStepStatusNext(); AnwUtils::redirect($this->linkStepNext()); }