aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-11 12:23:20 -0800
committerzotlabs <mike@macgirvin.com>2017-11-11 12:23:20 -0800
commit34b38f06e00d929c3004ca7ee961405de0a209e1 (patch)
treecbf52ee5f9d7653993aafb46ba5215de7ad83533
parent988028577b19d2cf2825eec65e398d447d8d4056 (diff)
downloadvolse-hubzilla-34b38f06e00d929c3004ca7ee961405de0a209e1.tar.gz
volse-hubzilla-34b38f06e00d929c3004ca7ee961405de0a209e1.tar.bz2
volse-hubzilla-34b38f06e00d929c3004ca7ee961405de0a209e1.zip
also disable uploading in comments if the channel permissionlimits for view_storage aren't PERMS_PUBLIC.
-rw-r--r--include/conversation.php3
1 files changed, 3 insertions, 0 deletions
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;