From 68e7eb4d9164276719e4e510fcb6e7187f781472 Mon Sep 17 00:00:00 2001 From: skeeter Date: Fri, 2 Mar 2001 04:19:58 +0000 Subject: [PATCH] stops editing of private events if no permission to do so --- calendar/edit_entry.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/calendar/edit_entry.php b/calendar/edit_entry.php index 6e0ab22381..0cddc124ae 100755 --- a/calendar/edit_entry.php +++ b/calendar/edit_entry.php @@ -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)