Code

Updated addressbook ACLs.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Feb 2009 15:59:26 +0000 (15:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Feb 2009 15:59:26 +0000 (15:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13404 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc

index c72d7461782ccb313950884e30dcf90bd8e9eb46..f3675a5c90696f79ac30a7cabfb9aaa28c0f7238 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 
-class addressbook_internal extends plugin{
+class addressbookgosa extends plugin{
 
   static function plInfo()
   {
@@ -802,7 +802,7 @@ class addressbook extends plugin
   function get_entry_acls($dn,$attr = "")
   {
     $acls = "";
-    $combineACLs = TRUE;
+    $combineACLs = FALSE;
 
     /* If combineACLs is set to false:
        Differentiate between user and addressbook acls, thus leads into two object categories.
@@ -811,7 +811,7 @@ class addressbook extends plugin
        To view addressbook entries (e.g. ou=addressbook,) you just require permissions on the ldap base for 'addressbook'.
        To view real GOsa users you have to additionally add user permissions.
 
-       You can enable this option, to use only addressbook acls (default).
+       You can enable this option, to use only addressbook acls.
      */
     if($combineACLs){
       $dn = preg_replace("/".preg_quote($this->abobjectclass, '/').",/","",$dn);
@@ -820,15 +820,16 @@ class addressbook extends plugin
 
       /* Use addressbook acls */
       if(preg_match("/".preg_quote($this->abobjectclass, '/')."/",$dn))  {
-        $dn = preg_replace("/".preg_quote($this->abobjectclass, '/').",/","",$dn);
-        $acls = $this->ui->get_permissions($dn,"addressbook/addressbook",$attr);
+        $dn_a = preg_replace("/".preg_quote($this->abobjectclass, '/').",/","",$dn);
+        $acls = $this->ui->get_permissions($dn_a,"addressbook/addressbook",$attr);
       }
 
       /* Use Organizational Person acls */
       else{
-        $acls = $this->ui->get_permissions($dn,"users/user",$attr);
+        $acls = $this->ui->get_permissions($dn,"addressbook/addressbookgosa",$attr);
       }
     }
+
     return($acls);
   }