Beispiel #1
0
 private function checkAccess()
 {
     if (empty($this->access[$this->params['action']]) || $this->user->hasRole($this->access[$this->params['action']])) {
         return true;
     }
     throw new Exception(Exception::TYPE_ACCESSDENIED, $this->params);
 }
Beispiel #2
0
 private function checkAccess($module, $controller)
 {
     if (empty($this->conf['access'][$module][$controller]) || $this->user->hasRole($this->conf['access'][$module][$controller])) {
         return true;
     }
     throw new Exception(Exception::TYPE_ACCESSDENIED);
 }