Merge pull request #13610 from MrPetovan/bug/13334-calendar-public-event

Fix computation of the private flag for shared event items
This commit is contained in:
Michael Vogel 2023-11-05 15:30:52 +01:00 committed by GitHub
commit 0f33c53d5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,7 +362,7 @@ class Event
$item['allow_gid'] = $event['allow_gid']; $item['allow_gid'] = $event['allow_gid'];
$item['deny_cid'] = $event['deny_cid']; $item['deny_cid'] = $event['deny_cid'];
$item['deny_gid'] = $event['deny_gid']; $item['deny_gid'] = $event['deny_gid'];
$item['private'] = $event['allow_cid'] && $event['allow_gid'] && $event['deny_cid'] && $event['deny_gid'] ? 0 : 1; $item['private'] = $event['allow_cid'] || $event['allow_gid'] || $event['deny_cid'] || $event['deny_gid'];
$item['visible'] = 1; $item['visible'] = 1;
$item['verb'] = Activity::POST; $item['verb'] = Activity::POST;
$item['object-type'] = Activity\ObjectType::EVENT; $item['object-type'] = Activity\ObjectType::EVENT;