From: hickert Date: Wed, 6 Dec 2006 07:14:33 +0000 (+0000) Subject: Fixed application base selection && checks X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9d047f0a040270cf7aaaa57558ce1ac59878dba6;p=gosa.git Fixed application base selection && checks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5314 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc index cf00e07b5..a18a27e08 100644 --- a/plugins/admin/applications/class_applicationGeneric.inc +++ b/plugins/admin/applications/class_applicationGeneric.inc @@ -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= "\"\" ". @@ -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.");