diff options
author | Andrew Dolgov <[email protected]> | 2009-02-13 15:13:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-02-13 15:13:29 +0300 |
commit | b47982828ad9c224fa83bcce3c4880cfd04b55d4 (patch) | |
tree | 729c5374b8be147b3f7a25b4fd692d66421d2d88 | |
parent | e6c611c5c0120d7b639e8cd67ffd03ab2c7275c8 (diff) |
backend/rss: allow access to feeds without authentication when running in single user mode
-rw-r--r-- | backend.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend.php b/backend.php index 9b5203e85..925f81087 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); } |