From a2c3de55ac259aca380d37383694effe6014c3a3 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 6 Nov 2008 10:24:05 +0000 Subject: [PATCH] Updated acl management list, -Hide create action if we do not have the correct permissions. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12933 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../applications/class_divListApplication.inc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/gosa-plugins/goto/admin/applications/class_divListApplication.inc b/gosa-plugins/goto/admin/applications/class_divListApplication.inc index a97cc1039..b13477182 100644 --- a/gosa-plugins/goto/admin/applications/class_divListApplication.inc +++ b/gosa-plugins/goto/admin/applications/class_divListApplication.inc @@ -94,16 +94,22 @@ class divListApplication extends MultiSelectWindow /* Get acls */ $ui = get_userinfo(); - $acl = $ui->get_permissions($this->selectedBase,"application/application"); - $acl_all = $ui->has_complete_category_acls($this->parent->app_base,"application"); + + if($this->parent->IsReleaseManagementActivated()){ + $acl = $ui->get_permissions($this->parent->acl_base,"application/application"); + $acl_all = $ui->has_complete_category_acls($this->parent->acl_base,"application"); + }else{ + $acl = $ui->get_permissions($this->selectedBase,"application/application"); + $acl_all = $ui->has_complete_category_acls($this->parent->app_base,"application"); + } /* Create Layers menu */ $s = ".|"._("Actions")."|\n"; /* Append create options */ + $s .= "..|". + " "._("Create")."|\n"; if(preg_match("/c/",$acl)) { - $s .= "..|". - " "._("Create")."|\n"; $s.= "...|". " "._("Application")."|appl_new|\n"; } -- 2.30.2