aboutsummaryrefslogtreecommitdiffstats
path: root/mod/wall_attach.php
diff options
context:
space:
mode:
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();
}