1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:35:56 +00:00

backend: force login on init when in single user mode

This commit is contained in:
Andrew Dolgov
2009-10-27 15:27:09 +03:00
parent 95d0edcc4e
commit 9c88320833

View File

@@ -75,7 +75,11 @@
header("Content-Type: application/xml");
print_error_xml(7); exit;
}
if (SINGLE_USER_MODE) {
authenticate_user($link, "admin", null);
}
if (!($_SESSION["uid"] && validate_session($link)) && $op != "globalUpdateFeeds"
&& $op != "rss" && $op != "getUnread" && $op != "publish") {