diff options
Diffstat (limited to 'include/attach.php')
-rw-r--r-- | include/attach.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/attach.php b/include/attach.php index 449721793..28aa14ec6 100644 --- a/include/attach.php +++ b/include/attach.php @@ -348,6 +348,7 @@ function attach_can_view($uid, $ob_hash, $resource, $token = EMPTY_STR) { $sql_extra = permissions_sql($uid, $ob_hash, '', $token); + $r = q("select folder from attach where hash = '%s' and uid = %d $sql_extra", dbesc($resource), intval($uid) |