Move login requirement to SoneTemplatePage.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / DeleteReplyPage.java
index d0a45f1..f0ece19 100644 (file)
@@ -38,7 +38,7 @@ public class DeleteReplyPage extends SoneTemplatePage {
         *            The Sone web interface
         */
        public DeleteReplyPage(Template template, WebInterface webInterface) {
-               super("deleteReply.html", template, "Page.DeleteReply.Title", webInterface);
+               super("deleteReply.html", template, "Page.DeleteReply.Title", webInterface, true);
        }
 
        //
@@ -70,16 +70,4 @@ public class DeleteReplyPage extends SoneTemplatePage {
                template.set("returnPage", returnPage);
        }
 
-       //
-       // SONETEMPLATEPAGE METHODS
-       //
-
-       /**
-        * {@inheritDoc}
-        */
-       @Override
-       protected boolean requiresLogin() {
-               return true;
-       }
-
 }