forked from extern/egroupware
Fix deleting of entries 'Only admins can purge deleted items'
This commit is contained in:
parent
8d3b47863d
commit
a816708e67
@ -1179,7 +1179,7 @@ class calendar_bo
|
|||||||
}
|
}
|
||||||
// do NOT allow users to purge deleted events, if we dont have 'userpurge' enabled
|
// do NOT allow users to purge deleted events, if we dont have 'userpurge' enabled
|
||||||
if ($access && $needed == EGW_ACL_DELETE && $event['deleted'] &&
|
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')
|
$GLOBALS['egw_info']['server']['calendar_delete_history'] != 'userpurge')
|
||||||
{
|
{
|
||||||
$access = false;
|
$access = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user