Move login requirement to SoneTemplatePage.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / UnlikePage.java
index bedf759..287c36c 100644 (file)
@@ -38,7 +38,7 @@ public class UnlikePage extends SoneTemplatePage {
         *            The Sone web interface
         */
        public UnlikePage(Template template, WebInterface webInterface) {
-               super("unlike.html", template, "Page.UnlikePost.Title", webInterface);
+               super("unlike.html", template, "Page.UnlikePost.Title", webInterface, true);
        }
 
        //
@@ -65,16 +65,4 @@ public class UnlikePage extends SoneTemplatePage {
                }
        }
 
-       //
-       // SONETEMPLATEPAGE METHODS
-       //
-
-       /**
-        * {@inheritDoc}
-        */
-       @Override
-       protected boolean requiresLogin() {
-               return true;
-       }
-
 }