Don’t create a new session in the link-enabled callback handler.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 17 Dec 2010 18:06:20 +0000 (19:06 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 17 Dec 2010 18:06:20 +0000 (19:06 +0100)
src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java

index 0b6b760..ccd0d05 100644 (file)
@@ -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;
        }