aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-30 19:43:46 -0700
committerfriendica <info@friendica.com>2013-07-30 19:43:46 -0700
commit41c411739fcb92edfca673106800741eef413c86 (patch)
treec6e11e32a4bf9a474c5549fe272bddb4546661d0 /include/attach.php
parentcb4d61e092e9e27c3753f60dd0a3757855279bbf (diff)
downloadvolse-hubzilla-41c411739fcb92edfca673106800741eef413c86.tar.gz
volse-hubzilla-41c411739fcb92edfca673106800741eef413c86.tar.bz2
volse-hubzilla-41c411739fcb92edfca673106800741eef413c86.zip
attachment permissions not right
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php
index 38a011bcb..46d406f4b 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -193,13 +193,13 @@ function attach_by_hash($hash,$rev = 0) {
$sql_extra = permissions_sql($r[0]['uid']);
// Now we'll see if we can access the attachment
-
+dbg(1);
$r = q("SELECT * FROM attach WHERE hash = '%s' and uid = %d $sql_extra LIMIT 1",
dbesc($hash),
intval($r[0]['uid'])
);
-
+dbg(0);
if(! $r) {
$ret['message'] = t('Permission denied.');
return $ret;