X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FLogoutPage.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FLogoutPage.java;h=f1c0b4838eeee82bdf4fac49580841fbf428831a;hb=4c831fb948000bc1730ebcde73eeb62317f4ac54;hp=f173bbbaf4c2bd1d9fc6e9d33c4d9e1f54d16e2b;hpb=ffe8711403c25bebba67b0835174fa29b62b8fa7;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/LogoutPage.java b/src/main/java/net/pterodactylus/sone/web/LogoutPage.java index f173bbb..f1c0b48 100644 --- a/src/main/java/net/pterodactylus/sone/web/LogoutPage.java +++ b/src/main/java/net/pterodactylus/sone/web/LogoutPage.java @@ -34,7 +34,7 @@ public class LogoutPage extends SoneTemplatePage { * The Sone web interface */ public LogoutPage(Template template, WebInterface webInterface) { - super("logout.html", template, "Page.Logout.Title", webInterface); + super("logout.html", template, "Page.Logout.Title", webInterface, true); } // @@ -55,14 +55,6 @@ public class LogoutPage extends SoneTemplatePage { * {@inheritDoc} */ @Override - protected boolean requiresLogin() { - return true; - } - - /** - * {@inheritDoc} - */ - @Override public boolean isEnabled(ToadletContext toadletContext) { return getCurrentSone(toadletContext) != null; }