Code

Added acl base detection
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 Oct 2006 12:03:15 +0000 (12:03 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 Oct 2006 12:03:15 +0000 (12:03 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4978 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/mailqueue/main.inc

index 916f878d601726e205fe17b7a23b3988d96ee91d..09bbe568c0a21efa8e5be070397fa64ae66ccd66 100644 (file)
@@ -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'];