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

This commit is contained in:
Nathan Gray 2013-01-23 15:58:37 +00:00
parent 197fc098e8
commit ae8794bdb8

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;