From: hickert Date: Tue, 31 Oct 2006 12:03:15 +0000 (+0000) Subject: Added acl base detection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3586c70614049bdd5d071a546c4dfd807458de80;p=gosa.git Added acl base detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4978 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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'];