From 458cb514b61ddbd9d741df5eaab078861d51c437 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 11 Jan 2007 11:22:20 +0000 Subject: [PATCH] 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 --- .../departments/class_divListDepartment.inc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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)]=""; } -- 2.30.2