Commit 1dc5c450 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

when reloading page due to anonymous login, don't create admin page

parent 198d54de
Pipeline #13304 canceled with stage
in 2 minutes and 54 seconds
......@@ -890,17 +890,20 @@ function createAdmin(params) {
ServerConnector.getSessionData(null).getLogin() === null ||
ServerConnector.getSessionData(null).getLogin() === undefined) {
window.location.href = ServerConnector.getServerBaseUrl() + "login.xhtml?from=" + encodeURI(window.location.href);
return Promise.resolve();
}
return ServerConnector.getConfiguration();
}).then(function (configuration) {
params.setConfiguration(configuration);
result = new Admin(params);
return createFooter();
}).then(function (footer) {
params.getElement().appendChild(footer);
return result.init();
}).then(function () {
return result;
if (configuration !== undefined) {
params.setConfiguration(configuration);
result = new Admin(params);
return createFooter().then(function (footer) {
params.getElement().appendChild(footer);
return result.init();
}).then(function () {
return result;
});
}
});
}
......
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