Code

And the last on, department base select and acls
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Dec 2006 07:26:13 +0000 (07:26 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Dec 2006 07:26:13 +0000 (07:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5320 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/departments/class_departmentGeneric.inc

index ae6d5492bb14d620edc4cceaf89aa67067afab61..e81da37b57d83acb4903643c90b147e55ee58386 100644 (file)
@@ -97,9 +97,6 @@ class department extends plugin
                $this->config->make_idepartments();
                $smarty= get_smarty();
 
-    /* Assign base ACL */
-    $smarty->assign("baseACL", $this->getacl("base"));
-    
     $tmp = $this->plInfo();
     foreach($tmp['plProvidedAcls'] as $name => $translation){
       $smarty->assign($name."ACL",$this->getacl($name));
@@ -242,18 +239,6 @@ class department extends plugin
                /* Call common method to give check the hook */
                $message= plugin::check();
 
-    
-    /* Set new acl base */
-    if($this->dn == "new") {
-      $this->set_acl_base($this->base);
-    }
-
-               /* Permissions for that base? */
-               //      $this->dn= "ou=$this->ou,".$this->base;
-               if (!$this->acl_is_createable() && $this->dn == "new"){
-                       $message[]= _("You have no permissions to create a department on this 'Base'.");
-               }
-
                /* Check for presence of this department */
                $ldap= $this->config->get_ldap_link();
     $ldap->ls ("(&(ou=".$this->ou.")(objectClass=organizationalUnit))", $this->base, array('dn'));