mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Fix purging old events to get rid of events for all users, not just the admin that set it.
This commit is contained in:
parent
8bbcafe1c0
commit
586a58a4e7
@ -1214,7 +1214,7 @@ class calendar_boupdate extends calendar_bo
|
||||
elseif ($config['calendar_delete_history'])
|
||||
{
|
||||
$event['deleted'] = true;
|
||||
$this->save($event);
|
||||
$this->save($event, $ignore_acl);
|
||||
// Actually delete alarms
|
||||
if (isset($event['alarm']) && is_array($event['alarm']))
|
||||
{
|
||||
@ -2221,8 +2221,10 @@ class calendar_boupdate extends calendar_bo
|
||||
{
|
||||
$query = array(
|
||||
'end' => strtotime("-$age years", time()),
|
||||
'enum_recuring' => false
|
||||
'enum_recuring' => false,
|
||||
'users' => array_keys($GLOBALS['egw']->accounts->search(array()))
|
||||
);
|
||||
|
||||
$events = $this->search($query);
|
||||
foreach($events as $event)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user