Commit ae05c363 authored by Nigel McNie's avatar Nigel McNie Committed by Penny Leach
Browse files

Reply properly to JSON requests when the user is logged out

parent 73a0a006
......@@ -347,6 +347,10 @@ function auth_setup () {
// The session timed out
if (defined('JSON')) {
json_reply('global', '', 1);
// If the page the user is viewing is public, inform them that they can
// log in again
if (defined('PUBLIC')) {
Supports Markdown
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