From 34b38f06e00d929c3004ca7ee961405de0a209e1 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sat, 11 Nov 2017 12:23:20 -0800 Subject: also disable uploading in comments if the channel permissionlimits for view_storage aren't PERMS_PUBLIC. --- include/conversation.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/conversation.php') diff --git a/include/conversation.php b/include/conversation.php index 2ce4dacef..0b9df5acd 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -581,6 +581,9 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa || $owner_channel['channel_deny_cid'] || $owner_channel['channel_deny_gid']) { $uploading = false; } + if(\Zotlabs\Access\PermissionLimits::Get($profile_owner,'view_storage') !== PERMS_PUBLIC) { + $uploading = false; + } } else { $uploading = false; -- cgit v1.2.3