aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-29 16:20:26 -0700
committerredmatrix <mike@macgirvin.com>2016-09-29 16:20:26 -0700
commit3727bea29acb79f66c15b155133ef3bb98d93d49 (patch)
treed3298c37cf7d286b25d85fe98f45a977fb9be2ec /include/attach.php
parentfcd7dc87447eee14277958a3b56080310ab6f352 (diff)
downloadvolse-hubzilla-3727bea29acb79f66c15b155133ef3bb98d93d49.tar.gz
volse-hubzilla-3727bea29acb79f66c15b155133ef3bb98d93d49.tar.bz2
volse-hubzilla-3727bea29acb79f66c15b155133ef3bb98d93d49.zip
issue #538 continued
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/attach.php b/include/attach.php
index f832427bb..8fa46a8b1 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -229,7 +229,7 @@ function attach_list_files($channel_id, $observer, $hash = '', $filename = '', $
* @param int $rev Revision
* @return array
*/
-function attach_by_hash($hash, $rev = 0) {
+function attach_by_hash($hash, $observer_hash, $rev = 0) {
$ret = array('success' => false);
@@ -249,7 +249,7 @@ function attach_by_hash($hash, $rev = 0) {
return $ret;
}
- if(! perm_is_allowed($r[0]['uid'], get_observer_hash(), 'view_storage')) {
+ if(! perm_is_allowed($r[0]['uid'], $observer_hash, 'view_storage')) {
$ret['message'] = t('Permission denied.');
return $ret;
}
@@ -315,7 +315,7 @@ function attach_can_view_folder($uid,$ob_hash,$folder_hash) {
* * \e string \b message (optional) only when success is false
* * \e array \b data array of attach DB entry without data component
*/
-function attach_by_hash_nodata($hash, $rev = 0) {
+function attach_by_hash_nodata($hash, $observer_hash, $rev = 0) {
$ret = array('success' => false);
@@ -335,7 +335,7 @@ function attach_by_hash_nodata($hash, $rev = 0) {
return $ret;
}
- if(! perm_is_allowed($r[0]['uid'],get_observer_hash(),'view_storage')) {
+ if(! perm_is_allowed($r[0]['uid'],$observer_hash,'view_storage')) {
$ret['message'] = t('Permission denied.');
return $ret;
}