From 3586c70614049bdd5d071a546c4dfd807458de80 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 31 Oct 2006 12:03:15 +0000 Subject: [PATCH] Added acl base detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4978 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/mailqueue/main.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/addons/mailqueue/main.inc b/plugins/addons/mailqueue/main.inc index 916f878d6..09bbe568c 100644 --- a/plugins/addons/mailqueue/main.inc +++ b/plugins/addons/mailqueue/main.inc @@ -23,9 +23,13 @@ if (!$remove_lock){ if (!isset($_SESSION['mailqueue']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){ $ui = get_userinfo(); $_SESSION['mailqueue']= new mailqueue ($config); - #$_SESSION['mailqueue']->set_acl_base($ui->dn); - $_SESSION['mailqueue']->set_acl_base($config->current['BASE']); $_SESSION['mailqueue']->set_acl_category("mailqueue"); + + /* Check root dn and user dn for acl informations */ + $_SESSION['mailqueue']->set_acl_base($config->current['BASE']); + if($_SESSION['mailqueue']->getacl("") == ""){ + $_SESSION['mailqueue']->set_acl_base($ui->dn); + } } $mailqueue= $_SESSION['mailqueue']; -- 2.30.2