From dc440635dfcc272628505c50a4a72caade5a82b7 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 11 Jan 2007 06:15:02 +0000 Subject: [PATCH] Only switch account state if allowed git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5524 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/posix/class_posixAccount.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index e3e9f2ab8..ba2fdeb1e 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -235,7 +235,11 @@ class posixAccount extends plugin if(!$isCopyPaste){ /* Do we need to flip is_account state? */ if (isset($_POST['modify_state'])){ - $this->is_account= !$this->is_account; + if($this->is_account && $this->acl == "#all#"){ + $this->is_account= !$this->is_account; + }elseif(!$this->is_account && chkacl($this->acl,"create") == ""){ + $this->is_account= !$this->is_account; + } } /* Do we represent a valid posixAccount? */ -- 2.30.2