Commit 005ecac8 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Allow "PUBLIC" to be defined to circumvent login checks

parent f4b09090
......@@ -157,7 +157,7 @@ function auth_setup () {
// There is no session, so we check to see if one needs to be started.
// First, check if the page is public or the site is configured to be public.
// @todo<nigel>: implement this :)
if (false) {
if (defined('PUBLIC')) {
// No need to hand out a session for such pages
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment