summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 22323b8)
raw | patch | inline | side by side (parent: 22323b8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Oct 2009 08:30:04 +0000 (08:30 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Oct 2009 08:30:04 +0000 (08:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14575 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 4ebac0f3389a5bef3c5d0561519053de82b1d9a6..0d2ca65113fac17039ff62942201c54cb27ceb90 100644 (file)
var $objectclasses= array("top", "person", "organizationalPerson", "inetOrgPerson");
var $abobjectclass= "dc=addressbook";
- var $globalAddressbookPermissions = "";
+ var $acl_targets_objects = array();
function addressbook (&$config, $dn= NULL)
{
}
$this->ui = get_userinfo();
- $this->globalAddressbookPermissions = "";
- foreach($this->ui->get_acl_target_objects() as $path){
- $this->globalAddressbookPermissions .= $this->ui->get_permissions($path,"addressbook/addressbook",$attr);
- }
+ $this->acl_targets_objects = $this->ui->get_acl_target_objects();
}
function execute()
session::set("phonefilter", $phonefilter);
/* Assign create acl */
- $acl = $this->get_entry_acls($this->abobjectclass.",".$phonefilter['search_base']);
+ $acl = $this->get_entry_acls($this->dn);
$smarty->assign("internal_createable", preg_match("/c/",$acl));
$smarty->assign("internal_removeable", preg_match("/d/",$acl));
$smarty->assign("internal_editable", preg_match("/w/",$acl));
/* Use addressbook acls */
if(preg_match("/".preg_quote($this->abobjectclass, '/')."/",$dn)) {
- $acls = $this->globalAddressbookPermissions;
+ $acls = "";
+ foreach($this->acl_targets_objects as $path){
+ $acls .= $this->ui->get_permissions($path,"addressbook/addressbook",$attr);
+ }
}
/* Use Organizational Person acls */