X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FBackupProfilePage.java;h=cca5df1e64a7c9af75d4f60a37f1b53ce429db49;hb=b29cf0908e6dfd2b55220a3a7e44200f2fe5b19e;hp=c39bd8a0f02b8d7c4759c7e4d1a2ddc2351e5961;hpb=3d0dbd535f8efee946c17454a22bd24d954946d6;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/BackupProfilePage.java b/src/main/java/net/pterodactylus/sone/web/BackupProfilePage.java index c39bd8a..cca5df1 100644 --- a/src/main/java/net/pterodactylus/sone/web/BackupProfilePage.java +++ b/src/main/java/net/pterodactylus/sone/web/BackupProfilePage.java @@ -39,7 +39,7 @@ public class BackupProfilePage extends SoneTemplatePage { * The Sone web interface */ public BackupProfilePage(Template template, WebInterface webInterface) { - super("backupProfile.html", template, "Page.BackupProfile.Title", webInterface); + super("backupProfile.html", template, "Page.BackupProfile.Title", webInterface, true); } // @@ -52,6 +52,7 @@ public class BackupProfilePage extends SoneTemplatePage { @Override public Response handleRequest(Request request) { StringWriter stringWriter = new StringWriter(); + template.set("currentSone", getCurrentSone(request.getToadletContext())); try { template.render(stringWriter); } finally { @@ -63,16 +64,4 @@ public class BackupProfilePage extends SoneTemplatePage { return response; } - // - // SONETEMPLATEPAGE METHODS - // - - /** - * {@inheritDoc} - */ - @Override - protected boolean requiresLogin() { - return true; - } - }