aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-08 23:12:08 -0700
committerzotlabs <mike@macgirvin.com>2017-08-08 23:12:08 -0700
commit8eb6dafe312746ea85ccdd0544b17241b2f95a9c (patch)
treea6a1330d4570637e9449a415b9baadb4d19fc2a2 /Zotlabs
parentca11d7b9a76c41c7cea0dbec1befacb0ff182de2 (diff)
downloadvolse-hubzilla-8eb6dafe312746ea85ccdd0544b17241b2f95a9c.tar.gz
volse-hubzilla-8eb6dafe312746ea85ccdd0544b17241b2f95a9c.tar.bz2
volse-hubzilla-8eb6dafe312746ea85ccdd0544b17241b2f95a9c.zip
only show upload button to those with write_storage permission
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/ThreadItem.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index a705e3c2b..3e76890b6 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -740,6 +740,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'),
'$feature_encrypt' => ((feature_enabled($conv->get_profile_owner(),'content_encrypt')) ? true : false),
'$encrypt' => t('Encrypt text'),
'$cipher' => $conv->get_cipher(),