mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:31 +01:00
Fix deleting of entries 'Only admins can purge deleted items'
This commit is contained in:
parent
197fc098e8
commit
ae8794bdb8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user