aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-12-14 13:32:58 -0800
committerzotlabs <mike@macgirvin.com>2017-12-14 13:32:58 -0800
commit684b572aa8005479f3eb219fc526c812c801ca76 (patch)
treef8ee52081242cb28f681c2ca934f65fcf1a42387 /include/attach.php
parent215d615fc3bb9e168e21a78a6319a7971c4d1e9e (diff)
parenta61c72b3b2076a5971eca47cda8aa067c03f9d6c (diff)
downloadvolse-hubzilla-684b572aa8005479f3eb219fc526c812c801ca76.tar.gz
volse-hubzilla-684b572aa8005479f3eb219fc526c812c801ca76.tar.bz2
volse-hubzilla-684b572aa8005479f3eb219fc526c812c801ca76.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/attach.php b/include/attach.php
index 88b6fa8e7..e94454905 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -308,6 +308,11 @@ function attach_can_view_folder($uid,$ob_hash,$folder_hash) {
$hash = $folder_hash;
$result = false;
+ if(! $folder_hash) {
+ return perm_is_allowed($uid,$ob_hash,'view_storage');
+ }
+
+
do {
$r = q("select folder from attach where hash = '%s' and uid = %d $sql_extra",
dbesc($hash),