From fa620022d5918143c303b8381c75259eff6371b9 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 10 Mar 2018 18:53:20 -0500 Subject: [PATCH] Make feedtest module for logged users only --- mod/feedtest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod/feedtest.php b/mod/feedtest.php index 671ff5df50..9217b85d54 100644 --- a/mod/feedtest.php +++ b/mod/feedtest.php @@ -16,7 +16,11 @@ require_once 'include/text.php'; function feedtest_content(App $a) { - //$a->page['template'] = "wide-2-columns"; + if (!local_user()) { + info(L10n::t('You must be logged in to use this module')); + return; + }; + $result = []; if (!empty($_REQUEST['url'])) { $url = $_REQUEST['url']; -- 2.39.5