Fix deleting of entries 'Only admins can purge deleted items'

This commit is contained in:
Nathan Gray 2013-01-22 15:54:23 +00:00
parent 8d3b47863d
commit a816708e67

View File

@ -1179,7 +1179,7 @@ class calendar_bo
}
// do NOT allow users to purge deleted events, if we dont have 'userpurge' enabled
if ($access && $needed == EGW_ACL_DELETE && $event['deleted'] &&
!$GLOBALS['egw_info']['user']['apps']['admin'] && $user != $this->user &&
!$GLOBALS['egw_info']['user']['apps']['admin'] &&
$GLOBALS['egw_info']['server']['calendar_delete_history'] != 'userpurge')
{
$access = false;