check permission

This commit is contained in:
friendica 2012-07-19 20:30:40 -07:00
parent a54278649f
commit 1a75507f78

View file

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