diff options
Diffstat (limited to 'src/main/java/com/juick/www/controllers/Help.java')
-rw-r--r-- | src/main/java/com/juick/www/controllers/Help.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/www/controllers/Help.java b/src/main/java/com/juick/www/controllers/Help.java index ae1dafbe..ae7ba9d1 100644 --- a/src/main/java/com/juick/www/controllers/Help.java +++ b/src/main/java/com/juick/www/controllers/Help.java @@ -20,13 +20,13 @@ package com.juick.www.controllers; import com.juick.model.User; import com.juick.util.HttpNotFoundException; import com.juick.service.HelpService; -import com.juick.service.security.annotation.Visitor; import com.juick.www.WebApp; import org.commonmark.parser.Parser; import org.commonmark.renderer.html.HtmlRenderer; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.PathVariable; import javax.inject.Inject; @@ -49,7 +49,7 @@ public class Help { @GetMapping({"/help/", "/help", "/help/{langOrPage}", "/help/{lang}/{page}"}) public String showHelp( - @Visitor User visitor, + @ModelAttribute User visitor, Locale locale, @PathVariable(required = false, name = "lang") String lang, @PathVariable(required = false, name = "page") String page, |