aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-12 14:14:20 -0800
committerzotlabs <mike@macgirvin.com>2017-11-12 14:14:20 -0800
commit458f2e748de22448206ce12c9961e9cce80c796d (patch)
tree9b1416de9c2b202bc119c5e1dfcd93e3f8fbd347 /include
parent34b38f06e00d929c3004ca7ee961405de0a209e1 (diff)
downloadvolse-hubzilla-458f2e748de22448206ce12c9961e9cce80c796d.tar.gz
volse-hubzilla-458f2e748de22448206ce12c9961e9cce80c796d.tar.bz2
volse-hubzilla-458f2e748de22448206ce12c9961e9cce80c796d.zip
cleanup of upload_to_comments test; we actually don't care about the profile owner. We only care that we're logged in locally and our storage is public by default.
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php22
1 files changed, 8 insertions, 14 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 0b9df5acd..1cbd9116c 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -573,22 +573,16 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
if (! feature_enabled($profile_owner,'multi_delete'))
$page_dropping = false;
- $uploading = true;
-
- if($profile_owner > 0) {
- $owner_channel = channelx_by_n($profile_owner);
- if($owner_channel['channel_allow_cid'] || $owner_channel['channel_allow_gid']
- || $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;
+ $uploading = false;
+
+ if(local_channel()) {
+ $cur_channel = App::get_channel();
+ if($cur_channel['channel_allow_cid'] === '' && $cur_channel['channel_allow_gid'] === ''
+ && $cur_channel['channel_deny_cid'] === '' && $cur_channel['channel_deny_gid'] === ''
+ && intval(\Zotlabs\Access\PermissionLimits::Get(local_channel(),'view_storage')) === PERMS_PUBLIC) {
+ $uploading = true;
}
}
- else {
- $uploading = false;
- }
-
$channel = App::get_channel();
$observer = App::get_observer();