Code

Renamed post names
[gosa.git] / plugins / admin / systems / class_workstationGeneric.inc
index 0676dca180d9892edaeaf8b8bd4f921e98c95487..0330d015e3443af3949ddf272230a2ca545aad1f 100644 (file)
@@ -220,7 +220,6 @@ class workgeneric extends plugin
       if($this->dialog->isClosed()){
         $this->dialog = false;
       }elseif($this->dialog->isSelected()){
-        $this->base = $this->dialog->isSelected();
 
         /* A new base was selected, check if it is a valid one */
         $tmp = $this->get_allowed_bases();
@@ -249,9 +248,6 @@ class workgeneric extends plugin
     /* Fill templating stuff */
     $smarty= get_smarty();
 
-    /* Create base acls */
-    $smarty->assign("baseACL",   $this->getacl("base"));
-
     /* Set acls */
     $tmp = $this->plInfo();
     foreach($tmp['plProvidedAcls'] as $name => $translation){
@@ -387,16 +383,6 @@ class workgeneric extends plugin
 
     $this->dn= "cn=".$this->cn.",ou=workstations,ou=systems,".$this->base;
 
-    /* Set new acl base */
-    if($this->dn == "new") {
-      $this->set_acl_base($this->base);
-    }
-
-    if ($this->orig_dn == "new" && !$this->acl_is_createable()){
-      $message[]= _("You have no permissions to create a workstation on this 'Base'.");
-    }
-
-
     if ($this->cn == ""){
       $message[]= _("The required field 'Workstation name' is not set.");
     }