From: hickert Date: Thu, 11 Jan 2007 11:22:20 +0000 (+0000) Subject: Hide delete button if not allowed to delete entry X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=458cb514b61ddbd9d741df5eaab078861d51c437;p=gosa.git Hide delete button if not allowed to delete entry git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5535 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/departments/class_divListDepartment.inc b/plugins/admin/departments/class_divListDepartment.inc index fb3148b99..501938ad5 100755 --- a/plugins/admin/departments/class_divListDepartment.inc +++ b/plugins/admin/departments/class_divListDepartment.inc @@ -85,14 +85,22 @@ class divListDepartment extends MultiSelectWindow function setEntries($list) { - $actions= ""; - $actions.= ""; $linkopen = "%s"; foreach($list as $key => $val) { + + $acl= get_permissions ($val['dn'], $this->ui->subtreeACL); + $acl= get_module_permission($acl, "department", $val['dn']); + + $actions= ""; + + if(chkacl($acl,"delete") == ""){ + $actions.= ""; + } + if(!isset($this->config->departments[trim($key)])){ $this->config->departments[trim($key)]=""; }