aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/ThreadItem.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-10 21:08:07 -0700
committerzotlabs <mike@macgirvin.com>2017-08-10 21:08:07 -0700
commit1408e3da3bcb818134b76db338fb913ae0b54aa1 (patch)
treee9c6722cec7f308e5960622f022d0f28d056b171 /Zotlabs/Lib/ThreadItem.php
parent5f6eedcc1a6e719c2ac6fa93219f700e0d430b59 (diff)
downloadvolse-hubzilla-1408e3da3bcb818134b76db338fb913ae0b54aa1.tar.gz
volse-hubzilla-1408e3da3bcb818134b76db338fb913ae0b54aa1.tar.bz2
volse-hubzilla-1408e3da3bcb818134b76db338fb913ae0b54aa1.zip
prevent uploads to comments if the channel has a default private ACL.
Diffstat (limited to 'Zotlabs/Lib/ThreadItem.php')
-rw-r--r--Zotlabs/Lib/ThreadItem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index 4a66c84bc..2a9a7e779 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -739,7 +739,7 @@ class ThreadItem {
'$edvideo' => t('Video'),
'$preview' => t('Preview'), // ((feature_enabled($conv->get_profile_owner(),'preview')) ? t('Preview') : ''),
'$indent' => $indent,
- '$can_upload' => perm_is_allowed($conv->get_profile_owner(),get_observer_hash(),'write_storage'),
+ '$can_upload' => (perm_is_allowed($conv->get_profile_owner(),get_observer_hash(),'write_storage') && $conv->is_uploadable()),
'$feature_encrypt' => ((feature_enabled($conv->get_profile_owner(),'content_encrypt')) ? true : false),
'$encrypt' => t('Encrypt text'),
'$cipher' => $conv->get_cipher(),