Skip to content
Snippets Groups Projects
Commit b4798282 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

backend/rss: allow access to feeds without authentication when running in single user mode

parent e6c611c5
No related branches found
No related tags found
No related merge requests found
...@@ -462,6 +462,10 @@ ...@@ -462,6 +462,10 @@
$match_on = db_escape_string($_GET["m"]); $match_on = db_escape_string($_GET["m"]);
$search_mode = db_escape_string($_GET["smode"]); $search_mode = db_escape_string($_GET["smode"]);
if (SINGLE_USER_MODE) {
authenticate_user($link, "admin", null);
}
if (!$_SESSION["uid"] && $user && $pass) { if (!$_SESSION["uid"] && $user && $pass) {
authenticate_user($link, $user, $pass); authenticate_user($link, $user, $pass);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment