check permission

This commit is contained in:
friendica 2012-07-19 20:30:40 -07:00
parent a54278649f
commit 1a75507f78
1 changed files with 5 additions and 0 deletions

View File

@ -102,6 +102,11 @@ function poke_init(&$a) {
function poke_content(&$a) {
if(! local_user()) {
notice( t('Permission denied.') . EOL);
return;
}
$base = $a->get_baseurl();
$a->page['htmlhead'] .= '<script src="' . $a->get_baseurl(true) . '/library/jquery_ac/friendica.complete.js" ></script>';