diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-10-12 19:49:06 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-10-12 19:49:06 -0700 |
commit | 3545626950a03f662a16ff3c1b589f2901c9948e (patch) | |
tree | cce707cfd5361418d47c3205be9143e0282a1539 /include/attach.php | |
parent | 8e7e9b704022333b5701a14435e1cc884695214f (diff) | |
download | volse-hubzilla-3545626950a03f662a16ff3c1b589f2901c9948e.tar.gz volse-hubzilla-3545626950a03f662a16ff3c1b589f2901c9948e.tar.bz2 volse-hubzilla-3545626950a03f662a16ff3c1b589f2901c9948e.zip |
attach_list_files had some problems - wasn't used until now apparently
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 4bbda9530..c16944601 100644 --- a/include/attach.php +++ b/include/attach.php @@ -180,7 +180,7 @@ function attach_list_files($channel_id, $observer, $hash = '', $filename = '', $ $ret = array('success' => false); - if(! perm_is_allowed($channel_id,$observer, 'read_storage')) { + if(! perm_is_allowed($channel_id,$observer, 'view_storage')) { $ret['message'] = t('Permission denied.'); return $ret; } @@ -202,7 +202,7 @@ function attach_list_files($channel_id, $observer, $hash = '', $filename = '', $ // Retrieve all columns except 'data' - $r = q("select id, aid, uid, hash, filename, filetype, filesize, revision, folder, flags, created, edited, allow_cid, allow_gid, deny_cid, deny_gid from attach where uid = %d $sql_extra $orderby $limit", + $r = q("select id, aid, uid, hash, filename, filetype, filesize, revision, folder, flags, created, edited, allow_cid, allow_gid, deny_cid, deny_gid from attach where uid = %d $sql_extra ORDER BY $orderby $limit", intval($channel_id) ); |