Beispiel #1
0
 /**
  * Obtener los datos para la ficha de usuario
  */
 public function getUser()
 {
     $this->_module = self::ACTION_USR_USERS;
     $this->view->addTemplate('users');
     $this->view->assign('user', UserUtil::getUserData($this->view->itemId));
     $this->view->assign('isDisabled', $this->view->user['user_login'] === 'demo' && $this->view->isDemo || $this->view->actionId === self::ACTION_USR_USERS_VIEW ? 'disabled' : '');
     $this->view->assign('groups', DB::getValuesForSelect('usrGroups', 'usergroup_id', 'usergroup_name'));
     $this->view->assign('profiles', DB::getValuesForSelect('usrProfiles', 'userprofile_id', 'userprofile_name'));
     $this->view->assign('ro', $this->view->user['checks']['user_isLdap'] ? 'READONLY' : '');
     $this->getCustomFieldsForItem();
 }