Move login requirement to SoneTemplatePage.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / UnfollowSonePage.java
index 6a9466d..61dd9d2 100644 (file)
@@ -35,7 +35,7 @@ public class UnfollowSonePage extends SoneTemplatePage {
         *            The Sone web interface
         */
        public UnfollowSonePage(Template template, WebInterface webInterface) {
-               super("unfollowSone.html", template, "Page.UnfollowSone.Title", webInterface);
+               super("unfollowSone.html", template, "Page.UnfollowSone.Title", webInterface, true);
        }
 
        //
@@ -60,16 +60,4 @@ public class UnfollowSonePage extends SoneTemplatePage {
                }
        }
 
-       //
-       // SONETEMPLATEPAGE METHODS
-       //
-
-       /**
-        * {@inheritDoc}
-        */
-       @Override
-       protected boolean requiresLogin() {
-               return true;
-       }
-
 }