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

This commit is contained in:
Andrew Dolgov 2009-02-13 15:13:29 +03:00
parent e6c611c5c0
commit b47982828a
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}