From 1a30df0160165d22af72ede4e8eda7df74200a34 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 11 Jan 2007 04:05:44 +0000 Subject: [PATCH] Skip setting trustModel and allowedHosts if we are not allowed to change those attributes git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5520 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index e904cf61e..e3e9f2ab8 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -308,7 +308,7 @@ class posixAccount extends plugin } /* Add user workstation? */ - if (isset($_POST["add_ws"])){ + if (isset($_POST["add_ws"]) && chkacl($this->acl,"allowedHosts") == ""){ $this->show_ws_dialog= TRUE; $this->dialog= TRUE; } @@ -323,7 +323,7 @@ class posixAccount extends plugin } /* Remove user workstations? */ - if (isset($_POST["delete_ws"]) && isset($_POST['workstation_list'])){ + if (isset($_POST["delete_ws"]) && isset($_POST['workstation_list']) && chkacl($this->acl,"allowedHosts") == ""){ foreach($_POST['workstation_list'] as $name){ unset ($this->accessTo[$name]); } @@ -666,7 +666,7 @@ class posixAccount extends plugin } /* Trust mode - special handling */ - if (isset($_POST['trustmode'])){ + if (isset($_POST['trustmode']) && chkacl($this->acl,"allowedHosts") == ""){ $saved= $this->trustModel; if ($_POST['trustmode'] == "1"){ $this->trustModel= "fullaccess"; -- 2.30.2