From: Andrew Dolgov Date: Fri, 13 Feb 2009 12:13:29 +0000 (+0300) Subject: backend/rss: allow access to feeds without authentication when running in single... X-Git-Tag: 1.3.1~14 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b47982828ad9c224fa83bcce3c4880cfd04b55d4;p=tt-rss.git backend/rss: allow access to feeds without authentication when running in single user mode --- diff --git a/backend.php b/backend.php index 9b5203e8..925f8108 100644 --- a/backend.php +++ b/backend.php @@ -462,6 +462,10 @@ $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); }