array('basis/ort:r') ) ); $this->load->library('PermissionLib'); $this->load->library('AuthLib'); $this->loadPhrases( array( 'ui', 'global', 'person', 'abschlusspruefung', 'password', 'lehre' ) ); $this->_setAuthUID(); $this->setControllerId(); } // ----------------------------------------------------------------------------------------------------------------- // Public methods public function index() { return $this->load->view('room_manager/index', [ 'permissions' => [ 'basis/ort_w' => $this->permissionlib->isBerechtigt('basis/ort', 'suid'), ], ]); } // ----------------------------------------------------------------------------------------------------------------- // Private methods /** * Retrieve the UID of the logged user and checks if it is valid */ private function _setAuthUID() { $this->_uid = getAuthUID(); if (!$this->_uid) show_error('User authentification failed'); } }