From: hickert Date: Wed, 28 May 2008 09:57:50 +0000 (+0000) Subject: Added create move acls X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4a2aea8b731bda0cf96d2349ed5e145aca9f7441;p=gosa.git Added create move acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11074 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc b/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc index 829371677..c35e83781 100644 --- a/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc +++ b/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc @@ -66,6 +66,9 @@ class conference extends plugin var $objectclasses= array("top", "goFonConference"); + var $orig_dn =""; + var $orig_base = ""; + function conference (&$config, $dn, $plugin= NULL) { plugin::plugin($config, $dn, $plugin); @@ -146,6 +149,9 @@ class conference extends plugin $this->old_dn = $this->dn; $this->old_cn = $this->cn; $this->old_base = $this->base; + $this->orig_base = $this->base; + $this->orig_dn = $this->dn; + } @@ -404,6 +410,15 @@ class conference extends plugin $message[] = msgPool::duplicated(_("Name")); } } + + /* Check if we are allowed to create or move this object + */ + if($this->orig_dn == "new" && !$this->acl_is_createable($this->base)){ + $message[] = msgPool::permCreate(); + }elseif($this->base != $this->orig_base && !$this->acl_is_moveable($this->base)){ + $message[] = msgPool::permMove(); + } + return $message; }