From: David ‘Bombe’ Roden Date: Fri, 31 Dec 2010 10:20:37 +0000 (+0100) Subject: Don’t create cookies for link-enabled checking. X-Git-Tag: beta-freefall-0.6.2-1~161 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b97c1185efc56d161e9c92e1b442933e77ce502b;p=Sone.git Don’t create cookies for link-enabled checking. --- diff --git a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java index ccd0d05..23ca247 100644 --- a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java +++ b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java @@ -186,7 +186,7 @@ public class SoneTemplatePage extends TemplatePage { @Override protected void processTemplate(Request request, Template template) throws RedirectException { super.processTemplate(request, template); - template.set("currentSone", getCurrentSone(request.getToadletContext())); + template.set("currentSone", getCurrentSone(request.getToadletContext(), false)); template.set("request", request); } @@ -195,7 +195,7 @@ public class SoneTemplatePage extends TemplatePage { */ @Override protected String getRedirectTarget(Page.Request request) { - if (requiresLogin() && (getCurrentSone(request.getToadletContext()) == null)) { + if (requiresLogin() && (getCurrentSone(request.getToadletContext(), false) == null)) { return "login.html"; } return null;