Code

Fixed application base selection && checks
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Dec 2006 07:14:33 +0000 (07:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Dec 2006 07:14:33 +0000 (07:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5314 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/applications/class_applicationGeneric.inc

index cf00e07b52b6d76fbf08c97edb1ce0d00fd55cab..a18a27e08131fcafe62194b3f2e8f22a08221084 100644 (file)
@@ -120,8 +120,6 @@ class application extends plugin
       $smarty->assign($name."ACL",$this->getacl($name));
     }
  
-    $smarty->assign("baseACL", $this->getacl("base"));
-
     /* Do we represent a valid group? */
     if (!$this->is_account && $this->parent == NULL){
       $display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\">&nbsp;<b>".
@@ -182,7 +180,8 @@ class application extends plugin
       if($this->dialog->isClosed()){
         $this->dialog = false;
       }elseif($this->dialog->isSelected()){
-  
+        /* Just allow selection valid bases */ 
         $tmp = $this->get_allowed_bases();
         if(isset($tmp[$this->dialog->isSelected()])){
           $this->base = $this->dialog->isSelected();
@@ -385,12 +384,6 @@ class application extends plugin
       $this->set_acl_base($this->base);
     }
 
-    /* Check acls to create a new application here  */
-    $ui= get_userinfo();
-    if (!$this->acl_is_createable() && $this->dn == "new"){
-      $message[]= _("You have no permissions to create a application on this 'Base'.");
-    }
-
     /* All required fields are set? */
     if ($this->cn == ""){
       $message[]= _("Required field 'Name' is not filled.");