From 1a75507f784f860e3228a58928e5ac00eb0a216b Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 19 Jul 2012 20:30:40 -0700 Subject: [PATCH] check permission --- mod/poke.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mod/poke.php b/mod/poke.php index 8fe07b4cd7..851396e68b 100644 --- a/mod/poke.php +++ b/mod/poke.php @@ -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'] .= ''; -- 2.39.5