From: hickert Date: Thu, 11 Jan 2007 06:15:02 +0000 (+0000) Subject: Only switch account state if allowed X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dc440635dfcc272628505c50a4a72caade5a82b7;p=gosa.git Only switch account state if allowed git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5524 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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? */