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