From 8832da749b7edd45e101fb62fd9d6abb77fda7c2 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 28 May 2008 10:12:24 +0000 Subject: [PATCH] Udpated acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11083 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gofax/blocklists/class_blocklistGeneric.inc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc index b240e542b..636a7fb52 100644 --- a/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc +++ b/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc @@ -20,6 +20,10 @@ class blocklistGeneric extends plugin var $attributes = array("cn","description"); var $ignore_account = TRUE; + + var $orig_base = ""; + var $orig_dn = ""; + function __construct($config,$dn = "new") { @@ -63,6 +67,9 @@ class blocklistGeneric extends plugin } else { $this->base =preg_replace ("/^[^,]+,[^,]+,[^,]+,/","",$this->dn); } + + $this->orig_base = $this->base; + $this->orig_dn = $this->dn; } public function execute() @@ -219,6 +226,15 @@ class blocklistGeneric extends plugin } } } + + /* 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; } -- 2.30.2