Code

Updated css und div framework.
[gosa.git] / plugins / admin / groups / class_groupGeneric.inc
index 5c933cd658a9e908bd8ef9c366743659478656e2..8858285e8947b7618882d8f19a783f514c52f905 100644 (file)
@@ -231,7 +231,7 @@ class group extends plugin
 
         /* Check if selected base is valid */
         $tmp = $this->get_allowed_bases();
-        if(isset($tmp[$_POST['base']])){
+        if(isset($tmp[$this->dialog->isSelected()])){
           $this->base = $this->dialog->isSelected();
         }
         $this->dialog= false;
@@ -260,9 +260,6 @@ class group extends plugin
       $smarty->assign("pickupGroup",false);
     }
 
-    /* Assign base ACL */
-    $smarty->assign("baseACL", $this->getacl("base"));
-
     /* Manage object add dialog */
     if ($this->group_dialog){
 
@@ -743,15 +740,6 @@ class group extends plugin
       $new_dn= $this->dn;
     }
 
-    /* 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 group on this 'Base'.");
-    }
-
     /* must: cn */
     if ($this->cn == "" && $this->acl_is_writeable("cn")){
       $message[]= "The required field 'Name' is not set.";
@@ -831,14 +819,14 @@ class group extends plugin
     }
 
     /* Find out next free id near to UID_BASE */
-    for ($id= $this->config->current['UIDBASE']; $id++; $id<65000){
+    for ($id= $this->config->current['UIDBASE']; $id++; $id < pow(2,32)){
       if (!in_array($id, $ids)){
         return ($id);
       }
     }
 
-    /* Should not happen */
-    if ($id == 65000){
+    /* Check if id reached maximum */
+    if ($id >= pow(2,32)){
       print_red(_("Too many users, can't allocate a free ID!"));
       exit;
     }