Code

Added set_acl_base() to all check() functions, to ensure that the checks will be...
[gosa.git] / plugins / admin / systems / class_componentGeneric.inc
index cf0eaa6706c2b625d6939d17ae20a32a69324543..2541343350739fdce79fb42d863a122b0372b7cc 100644 (file)
@@ -174,6 +174,11 @@ class componentGeneric extends plugin
       }
     }
 
+    /* Set new acl base */
+    if($this->dn == "new") {
+      $this->set_acl_base($this->base);
+    }
+
     $ui= get_userinfo();
     if ($this->dn == "new" && !$this->acl_is_createable()){
       $message[]= _("You have no permissions to create a component on this 'Base'.");