]> git.mxchange.org Git - friendica.git/commitdiff
Make feedtest module for logged users only
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 10 Mar 2018 23:53:20 +0000 (18:53 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Sat, 10 Mar 2018 23:53:20 +0000 (18:53 -0500)
mod/feedtest.php

index 671ff5df50638ef28f0c8ee3861bb099368e7994..9217b85d541ffe3190eae9f701d0e406d847e776 100644 (file)
@@ -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'];