Skip to content
Snippets Groups Projects
Commit 0beadc1b authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '150-caching-error-minerva-admin-panel-crash' into 'master'

order of the arguments fixed

Closes #150

See merge request !64
parents f8b0db69 9a7c61bc
No related branches found
No related tags found
1 merge request!64order of the arguments fixed
......@@ -584,7 +584,7 @@ public class UserBean extends AbstractManagedBean {
authenticationToken = getUserService().login(Configuration.ANONYMOUS_LOGIN, "");
}
Calendar now = Calendar.getInstance();
now.add(-1, Calendar.MINUTE);
now.add(Calendar.MINUTE, -1);
if (authenticationToken.getExpires().after(now)) {
authenticationToken = getUserService().login(Configuration.ANONYMOUS_LOGIN, "");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment