/**
  * List all custom user fields
  */
 function listUserDefinedFields()
 {
     global $lng, $tpl, $ilToolbar, $ilCtrl;
     $ilToolbar->addButton($lng->txt("add_user_defined_field"), $ilCtrl->getLinkTarget($this, "addField"));
     include_once "./Services/User/classes/class.ilCustomUserFieldSettingsTableGUI.php";
     $tab = new ilCustomUserFieldSettingsTableGUI($this, "listUserDefinedFields");
     if ($this->confirm_change) {
         $tab->setConfirmChange();
     }
     $tpl->setContent($tab->getHTML());
 }
 /**
  * List all custom user fields
  */
 function listUserDefinedFields()
 {
     global $lng, $tpl, $ilToolbar, $ilCtrl;
     if ($this->getPermissions()->hasPermission(ilUDFPermissionHelper::CONTEXT_UDF, (int) $_GET["ref_id"], ilUDFPermissionHelper::ACTION_UDF_CREATE_FIELD)) {
         $ilToolbar->addButton($lng->txt("add_user_defined_field"), $ilCtrl->getLinkTarget($this, "addField"));
     }
     include_once "./Services/User/classes/class.ilCustomUserFieldSettingsTableGUI.php";
     $tab = new ilCustomUserFieldSettingsTableGUI($this, "listUserDefinedFields", $this->getPermissions());
     if ($this->confirm_change) {
         $tab->setConfirmChange();
     }
     $tpl->setContent($tab->getHTML());
 }