stops editing of private events if no permission to do so

This commit is contained in:
skeeter 2001-03-02 04:19:58 +00:00
parent 5439880d7f
commit 68e7eb4d91

View File

@ -58,7 +58,17 @@
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)