diff options
author | zotlabs <mike@macgirvin.com> | 2017-08-10 21:08:07 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-08-10 21:08:07 -0700 |
commit | 1408e3da3bcb818134b76db338fb913ae0b54aa1 (patch) | |
tree | e9c6722cec7f308e5960622f022d0f28d056b171 /Zotlabs/Lib/ThreadItem.php | |
parent | 5f6eedcc1a6e719c2ac6fa93219f700e0d430b59 (diff) | |
download | volse-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.php | 2 |
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(), |