From 30d5e3b7eeced232b9fdec67ba68dd09dda89877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Sun, 25 Feb 2007 20:04:41 +0000 Subject: [PATCH] show calendar icon only if calendar read permissions are granted for a given cat --- resources/inc/class.bo_resources.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/inc/class.bo_resources.inc.php b/resources/inc/class.bo_resources.inc.php index c5f88b1adf..632990fe2f 100755 --- a/resources/inc/class.bo_resources.inc.php +++ b/resources/inc/class.bo_resources.inc.php @@ -97,11 +97,15 @@ class bo_resources { $readonlys["new_acc[$resource[res_id]]"] = true; } - if (!$resource['bookable'] /* && calender-acl viewable */) + if (!$resource['bookable']) { $readonlys["bookable[$resource[res_id]]"] = true; $readonlys["calendar[$resource[res_id]]"] = true; } + if(!$this->acl->is_permitted($resource['cat_id'],EGW_ACL_CALREAD)) + { + $readonlys["calendar[$resource[res_id]]"] = true; + } if (!$resource['buyable']) { $readonlys["buyable[$resource[res_id]]"] = true;