mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-14 03:54:29 +01:00
Keep event owner while copying, if current user has add permissions
This commit is contained in:
parent
588862d150
commit
e992ffd19a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user