summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3d5a9f2)
raw | patch | inline | side by side (parent: 3d5a9f2)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 6 Feb 2009 15:59:26 +0000 (15:59 +0000) | ||
committer | hickert <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 | patch | blob | history |
diff --git a/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc b/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc
index c72d7461782ccb313950884e30dcf90bd8e9eb46..f3675a5c90696f79ac30a7cabfb9aaa28c0f7238 100644 (file)
<?php
-class addressbook_internal extends plugin{
+class addressbookgosa extends plugin{
static function plInfo()
{
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.
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);
/* 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);
}