diff options
Diffstat (limited to 'juick-www/src/main')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/controllers/SignUp.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/SignUp.java b/juick-www/src/main/java/com/juick/www/controllers/SignUp.java index 937a3242..ad148265 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/SignUp.java +++ b/juick-www/src/main/java/com/juick/www/controllers/SignUp.java @@ -20,6 +20,7 @@ package com.juick.www.controllers; import com.juick.server.util.HttpBadRequestException; import com.juick.server.util.HttpForbiddenException; import com.juick.service.CrosspostService; +import com.juick.service.MessagesService; import com.juick.service.UserService; import com.juick.www.Utils; import com.juick.www.WebApp; @@ -46,6 +47,8 @@ public class SignUp { UserService userService; @Inject CrosspostService crosspostService; + @Inject + MessagesService messagesService; @RequestMapping(value = "/signup", method = RequestMethod.GET) @@ -83,6 +86,7 @@ public class SignUp { model.addAttribute("account", account); model.addAttribute("type", type); model.addAttribute("hash", hash); + model.addAttribute("readonly", messagesService.isReadonly()); return "views/signup"; } |