static function isActionGlobalAllowed($sAction)
 {
     return AnwAcls::isActionGlobalAllowed(self::getUser(), $sAction);
 }
Esempio n. 2
0
 function isAdminAllowed()
 {
     return AnwAcls::isAdminAllowed($this);
 }
Esempio n. 3
0
 /**
  * @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());
 }