targetUser->id && $this->user->role != Users_Model_User::ROLE_ADMIN) { throw new Monkeys_AccessDeniedException(); } $this->view->canEditAccountInfo = !$this->_config->ldap->enabled || ($this->_config->ldap->enabled && $this->_config->ldap->keepRecordsSynced); $this->view->canChangePassword = !$this->_config->ldap->enabled || ($this->_config->ldap->enabled && $this->_config->ldap->canChangePassword); $this->view->yubikey = $this->_config->yubikey; $this->_helper->actionStack('index', 'login', 'users'); } }