From 9d047f0a040270cf7aaaa57558ce1ac59878dba6 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 6 Dec 2006 07:14:33 +0000 Subject: [PATCH] Fixed application base selection && checks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5314 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/applications/class_applicationGeneric.inc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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."); -- 2.30.2