]> git.wh0rd.org Git - tt-rss.git/commitdiff
backend/rss: allow access to feeds without authentication when running in single...
authorAndrew Dolgov <fox@bah.org.ru>
Fri, 13 Feb 2009 12:13:29 +0000 (15:13 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Fri, 13 Feb 2009 12:13:29 +0000 (15:13 +0300)
backend.php

index 9b5203e85328b24bd1e53eb36df5886acd5d5bb0..925f81087bdeab4799658a191110a08f6b5bebe2 100644 (file)
                        $match_on = db_escape_string($_GET["m"]);
                        $search_mode = db_escape_string($_GET["smode"]);
 
+                       if (SINGLE_USER_MODE) {
+                               authenticate_user($link, "admin", null);
+                       }
+
                        if (!$_SESSION["uid"] && $user && $pass) {
                                authenticate_user($link, $user, $pass);
                        }