From 35eb5f63b181a177ba76c6e8e040793ce8d54e32 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 11 Jan 2007 05:01:46 +0000 Subject: [PATCH] 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 --- plugins/personal/environment/class_environment.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)){ -- 2.30.2