check permission
This commit is contained in:
parent
a54278649f
commit
1a75507f78
1 changed files with 5 additions and 0 deletions
|
@ -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>';
|
||||||
|
|
Loading…
Reference in a new issue