From 1359ce2aca4bb9e368c0deab0bc48429a29d8b86 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 26 Jul 2016 11:45:48 -0600 Subject: [PATCH] Keep event owner while copying, if current user has add permissions --- calendar/inc/class.calendar_uiforms.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index a75c84388a..94f30e13db 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -600,7 +600,7 @@ class calendar_uiforms extends calendar_ui unset($event['modified']); unset($event['modifier']); unset($event['caldav_name']); - $event['owner'] = !(int)$this->owner || !$this->bo->check_perms(Acl::ADD,0,$this->owner) ? $this->user : $this->owner; + $event['owner'] = !(int)$event['owner'] || !$this->bo->check_perms(Acl::ADD,0,$evnet['owner']) ? $this->user : $event['owner']; // Clear participant stati foreach($event['participant_types'] as $type => &$participants)