aboutsummaryrefslogtreecommitdiffstats
path: root/mod/wall_attach.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-30 17:27:32 -0800
committerfriendica <info@friendica.com>2013-01-30 17:27:32 -0800
commit3767bba3c3669b6e882139abfaa3553db61d1474 (patch)
tree5d2b662c62b42027d64292b6229edecdb2dd782b /mod/wall_attach.php
parente270bd3874bb4526138cc06cd26e2a1153778894 (diff)
downloadvolse-hubzilla-3767bba3c3669b6e882139abfaa3553db61d1474.tar.gz
volse-hubzilla-3767bba3c3669b6e882139abfaa3553db61d1474.tar.bz2
volse-hubzilla-3767bba3c3669b6e882139abfaa3553db61d1474.zip
beginning of backend file/attachment api
Diffstat (limited to 'mod/wall_attach.php')
-rw-r--r--mod/wall_attach.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/mod/wall_attach.php b/mod/wall_attach.php
index 865605313..8b8a6ddaa 100644
--- a/mod/wall_attach.php
+++ b/mod/wall_attach.php
@@ -29,9 +29,7 @@ function wall_attach_post(&$a) {
$page_owner_uid = $channel['channel_id'];
- $observer = $a->get_observer();
-
- if(! perm_is_allowed($page_owner_uid,$observer['xchan_hash'],'write_storage')) {
+ if(! perm_is_allowed($page_owner_uid,get_observer_hash(),'write_storage')) {
notice( t('Permission denied.') . EOL);
killme();
}