mirror of https://github.com/MISP/MISP
fix: [UI] Check if user is logged in switched to on-demand JSON version
parent
b6cbd47d10
commit
a4de5b314c
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue