]> git.wh0rd.org - tt-rss.git/blobdiff - classes/handler/public.php
fix sharepopup/subscribe public handler actions in single user mode
[tt-rss.git] / classes / handler / public.php
index f2a7730c895f9a9e961d486b623aed1a0b96daa6..4474182cc05c8f5d37a7af1d0886f32de10ff2e5 100644 (file)
@@ -377,6 +377,10 @@ class Handler_Public extends Handler {
        }
 
        function sharepopup() {
+               if (SINGLE_USER_MODE) {
+                       login_sequence($this->link);
+               }
+
                header('Content-Type: text/html; charset=utf-8');
                print "<html>
                                <head>
@@ -542,6 +546,10 @@ class Handler_Public extends Handler {
        }
 
        function subscribe() {
+               if (SINGLE_USER_MODE) {
+                       login_sequence($this->link);
+               }
+
                if ($_SESSION["uid"]) {
 
                        $feed_url = db_escape_string(trim($_REQUEST["feed_url"]));