forked from extern/egroupware
show calendar icon only if calendar read permissions are granted for a given cat
This commit is contained in:
parent
093708ae45
commit
30d5e3b7ee
@ -97,11 +97,15 @@ class bo_resources
|
|||||||
{
|
{
|
||||||
$readonlys["new_acc[$resource[res_id]]"] = true;
|
$readonlys["new_acc[$resource[res_id]]"] = true;
|
||||||
}
|
}
|
||||||
if (!$resource['bookable'] /* && calender-acl viewable */)
|
if (!$resource['bookable'])
|
||||||
{
|
{
|
||||||
$readonlys["bookable[$resource[res_id]]"] = true;
|
$readonlys["bookable[$resource[res_id]]"] = true;
|
||||||
$readonlys["calendar[$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'])
|
if (!$resource['buyable'])
|
||||||
{
|
{
|
||||||
$readonlys["buyable[$resource[res_id]]"] = true;
|
$readonlys["buyable[$resource[res_id]]"] = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user