Redirect to “noPermission.html” if a POST request does not have the correct form...
[Sone.git] / src / main / java / net / pterodactylus / sone / web / SoneTemplatePage.java
index 2a56c57..427b0ff 100644 (file)
@@ -51,7 +51,7 @@ public class SoneTemplatePage extends TemplatePage {
         *            The Sone web interface
         */
        public SoneTemplatePage(String path, Template template, String pageTitleKey, WebInterface webInterface) {
-               super(path, template, webInterface.l10n(), pageTitleKey);
+               super(path, template, webInterface.l10n(), pageTitleKey, "noPermission.html");
                this.webInterface = webInterface;
                template.set("webInterface", webInterface);
        }