fix: [UI] Check if user is logged in switched to on-demand JSON version

pull/4413/head
iglocska 2019-04-03 10:33:37 +02:00
parent b6cbd47d10
commit a4de5b314c
1 changed files with 1 additions and 1 deletions

View File

@ -3955,7 +3955,7 @@ function queryEventLock(event_id, user_org_id) {
function checkIfLoggedIn() {
if (tabIsActive) {
$.get("/users/checkIfLoggedIn", function(data) {
$.get("/users/checkIfLoggedIn.json", function(data) {
if (data.slice(-2) !== 'OK') {
window.location.replace(baseurl + "/users/login");
}