summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-02-13 15:13:29 +0300
committerAndrew Dolgov <[email protected]>2009-02-13 15:13:29 +0300
commitb47982828ad9c224fa83bcce3c4880cfd04b55d4 (patch)
tree729c5374b8be147b3f7a25b4fd692d66421d2d88 /backend.php
parente6c611c5c0120d7b639e8cd67ffd03ab2c7275c8 (diff)
backend/rss: allow access to feeds without authentication when running in single user mode
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php4
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);
}