From cf86950813e388b238dd0b628e0e1763dca4e748 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 7 Nov 2008 10:26:14 +0000 Subject: [PATCH] Updated ACL handling - Use selected department for acl checks in non fai mode and the ldap_base is fai is active. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12964 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../applications/class_applicationManagement.inc | 16 ++++++---------- .../applications/class_divListApplication.inc | 2 +- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/gosa-plugins/goto/admin/applications/class_applicationManagement.inc b/gosa-plugins/goto/admin/applications/class_applicationManagement.inc index d4727b11a..78ec8dede 100644 --- a/gosa-plugins/goto/admin/applications/class_applicationManagement.inc +++ b/gosa-plugins/goto/admin/applications/class_applicationManagement.inc @@ -57,7 +57,6 @@ class applicationManagement extends plugin /* Save configuration for internal use */ $this->config = &$config; $this->ui = &$ui; - $this->acl_base = $this->config->current['BASE']; /* Check if copy & paste is activated */ if($this->config->boolValueIsTrue("MAIN","COPYPASTE")){ @@ -68,11 +67,15 @@ class applicationManagement extends plugin $this->DivListApplication = new divListApplication($this->config,$this); if($this->IsReleaseManagementActivated()){ - /* Check if we should enable the release selection */ + $this->acl_base = $this->config->current['BASE']; + + /* Check if we should enable the release selection */ $this->enableReleaseManagement = true; /* Hide SubSearch checkbox */ $this->DivListApplication->DisableCheckBox("SubSearch"); + }else{ + $this->acl_base = &$this->DivListApplication->selectedBase; } /* Set default release */ @@ -233,14 +236,7 @@ class applicationManagement extends plugin /* Create new usertab object */ $this->apptabs= new apptabs($this->config,$this->config->data['TABS']['APPSTABS'], $this->dn,"application"); $this->apptabs->parent = &$this; - - /* Check if there is a snapshot dialog open */ - if($this->IsReleaseManagementActivated()){ - $this->apptabs->set_acl_base($this->acl_base); - }else{ - $this->apptabs->set_acl_base($this->DivListApplication->selectedBase); - } - + $this->apptabs->set_acl_base($this->acl_base); } diff --git a/gosa-plugins/goto/admin/applications/class_divListApplication.inc b/gosa-plugins/goto/admin/applications/class_divListApplication.inc index b13477182..c281fa2c5 100644 --- a/gosa-plugins/goto/admin/applications/class_divListApplication.inc +++ b/gosa-plugins/goto/admin/applications/class_divListApplication.inc @@ -93,7 +93,7 @@ class divListApplication extends MultiSelectWindow } /* Get acls */ - $ui = get_userinfo(); + $ui = get_userinfo(); if($this->parent->IsReleaseManagementActivated()){ $acl = $ui->get_permissions($this->parent->acl_base,"application/application"); -- 2.30.2