beginning of backend file/attachment api

This commit is contained in:
friendica
2013-01-30 17:27:32 -08:00
parent e270bd3874
commit 3767bba3c3
6 changed files with 92 additions and 7 deletions

View File

@@ -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();
}