From ead56c59e2551f39d00e880a2cdb4b2d02b38705 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Fri, 24 Jan 2020 19:38:52 -0800 Subject: bugfix: event_addtocal not preserving original privacy expectation --- include/event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/event.php b/include/event.php index 59057e7d5..64e63074c 100644 --- a/include/event.php +++ b/include/event.php @@ -614,7 +614,7 @@ function event_addtocal($item_id, $uid) { $ev['event_hash'] = $item['resource_id']; } - if($ev->private) + if($ev['private']) $ev['allow_cid'] = '<' . $channel['channel_hash'] . '>'; else { $acl = new Zotlabs\Access\AccessList($channel); -- cgit v1.2.3