diff options
-rw-r--r-- | juick-www/src/main/java/com/juick/www/controllers/Help.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/Help.java b/juick-www/src/main/java/com/juick/www/controllers/Help.java index 58949827..361d5efc 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/Help.java +++ b/juick-www/src/main/java/com/juick/www/controllers/Help.java @@ -1,6 +1,7 @@ package com.juick.www.controllers; import com.juick.server.util.HttpNotFoundException; +import com.juick.service.MessagesService; import com.juick.www.HelpService; import com.juick.www.WebApp; import org.springframework.stereotype.Controller; @@ -25,6 +26,8 @@ public class Help { @Inject private HelpService helpService; @Inject + private MessagesService messagesService; + @Inject private WebApp webApp; @RequestMapping({"/help/", "/help", "/help/{langOrPage}", "/help/{lang}/{page}"}) @@ -68,6 +71,7 @@ public class Help { model.addAttribute("navigation", navigation); model.addAttribute("content", content); model.addAttribute("visitor", visitor); + model.addAttribute("readonly", messagesService.isReadonly()); return "views/help"; } |