From: hickert Date: Thu, 11 Jan 2007 05:01:46 +0000 (+0000) Subject: Only allow changing plugin state if posix is enabled or we want to remove the account X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=35eb5f63b181a177ba76c6e8e040793ce8d54e32;p=gosa.git Only allow changing plugin state if posix is enabled or we want to remove the account git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5522 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 65705cc0b..a163a7e4a 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -327,7 +327,11 @@ class environment extends plugin /* Do we need to flip is_account state? */ if (isset($_POST['modify_state'])){ - $this->is_account= !$this->is_account; + + /* Onyl change state if we have posixs enabled or we want to remove this account */ + if(!(!$this->parent->by_object['posixAccount']->is_account && !$this->is_account)){ + $this->is_account= !$this->is_account; + } } if(isset($this->parent)){