mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-18 11:21:23 +01:00
stops editing of private events if no permission to do so
This commit is contained in:
parent
5439880d7f
commit
68e7eb4d91
@ -58,7 +58,17 @@
|
|||||||
|
|
||||||
if(($cal_info->owner == $owner) && ($phpgw->calendar->check_perms(PHPGW_ACL_EDIT) == True))
|
if(($cal_info->owner == $owner) && ($phpgw->calendar->check_perms(PHPGW_ACL_EDIT) == True))
|
||||||
{
|
{
|
||||||
$can_edit = True;
|
if($cal_info->access=='private')
|
||||||
|
{
|
||||||
|
if($phpgw->calendar->check_perms(16) == True)
|
||||||
|
{
|
||||||
|
$can_edit = True;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$can_edit = True;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($can_edit == False)
|
if($can_edit == False)
|
||||||
|
Loading…
Reference in New Issue
Block a user