diff options
author | Christian Vogeley <christian.vogeley@hotmail.de> | 2013-08-03 00:18:14 +0200 |
---|---|---|
committer | Christian Vogeley <christian.vogeley@hotmail.de> | 2013-08-03 00:18:14 +0200 |
commit | f09ac4e5972a77dfe73338ee207e40ec463355e9 (patch) | |
tree | 77232d70031622a162f4e00aec128961ecc7a764 /include/attach.php | |
parent | 9294f72adb3c076932558b6f29a4c570e7962764 (diff) | |
download | volse-hubzilla-f09ac4e5972a77dfe73338ee207e40ec463355e9.tar.gz volse-hubzilla-f09ac4e5972a77dfe73338ee207e40ec463355e9.tar.bz2 volse-hubzilla-f09ac4e5972a77dfe73338ee207e40ec463355e9.zip |
Revert "Revert "merge""
This reverts commit 9294f72adb3c076932558b6f29a4c570e7962764.
Diffstat (limited to 'include/attach.php')
-rw-r--r-- | include/attach.php | 4 |
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; |