show calendar icon only if calendar read permissions are granted for a given cat

This commit is contained in:
Cornelius Weiß 2007-02-25 20:04:41 +00:00
parent 093708ae45
commit 30d5e3b7ee

View File

@ -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;