From c189636002c3245633730969ac00206e19a8105e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 10 Mar 2017 17:23:08 +0300 Subject: juick-www: fix signup model --- juick-www/src/main/java/com/juick/www/controllers/SignUp.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'juick-www/src/main/java/com/juick/www') 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"; } -- cgit v1.2.3