From: David ‘Bombe’ Roden Date: Fri, 17 Dec 2010 18:06:20 +0000 (+0100) Subject: Don’t create a new session in the link-enabled callback handler. X-Git-Tag: beta-freefall-0.6.2-1~182 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f66933bf5ba1b425c167e481c8d0fabc31d2b5be;p=Sone.git Don’t create a new session in the link-enabled callback handler. --- diff --git a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java index 0b6b760..ccd0d05 100644 --- a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java +++ b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java @@ -207,7 +207,7 @@ public class SoneTemplatePage extends TemplatePage { @Override public boolean isEnabled(ToadletContext toadletContext) { if (requiresLogin()) { - return getCurrentSone(toadletContext) != null; + return getCurrentSone(toadletContext, false) != null; } return true; }