From 56949815c692b8ba1da6b03091d0ccb023d0c61e Mon Sep 17 00:00:00 2001 From: tbrehm Date: Thu, 5 Mar 2009 15:46:46 +0000 Subject: [PATCH] disable the possibility to change the site of a existing shell user. --- interface/web/sites/shell_user_edit.php | 7 +++++++ interface/web/sites/templates/shell_user_edit.htm | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/interface/web/sites/shell_user_edit.php b/interface/web/sites/shell_user_edit.php index d288baa69a..e2613cb1ef 100644 --- a/interface/web/sites/shell_user_edit.php +++ b/interface/web/sites/shell_user_edit.php @@ -93,6 +93,13 @@ class page_action extends tform_actions { } else { $app->tpl->setVar("username_prefix", $shelluser_prefix); } + + if($this->id > 0) { + //* we are editing a existing record + $app->tpl->setVar("parent_domain_id_disabled", 'disabled="disabled"'); + } else { + $app->tpl->setVar("parent_domain_id_disabled", ''); + } parent::onShowEnd(); } diff --git a/interface/web/sites/templates/shell_user_edit.htm b/interface/web/sites/templates/shell_user_edit.htm index e2526381f6..a6f5c3a491 100644 --- a/interface/web/sites/templates/shell_user_edit.htm +++ b/interface/web/sites/templates/shell_user_edit.htm @@ -6,7 +6,7 @@
Shell User - + -- GitLab