Esempio n. 1
0
 /**
  * Action to list the access a user has to certain elements
  *
  */
 public function useraccessAction()
 {
     $username = $this->_getParam('username');
     if ($username == null) {
         $this->flash("Must provide username!");
         $this->redirect('admin');
         return;
     }
     $this->view->access = $this->accessService->getAccessList($username);
     $this->view->user = $this->userService->getUserByField('username', $username);
     $this->view->modules = za()->getConfig('modules');
     $this->view->modules[] = 'default';
     $this->renderView('admin/user-access.php');
 }