fix: add space into user info.

This commit is contained in:
lishuang
2023-07-08 14:11:42 +08:00
parent 066ae11ad7
commit 327af9f3fa
+5
View File
@@ -153,6 +153,11 @@ func (this *UserController) AuthenticationLogin(writer http.ResponseWriter, requ
// fetch current user's info.
func (this *UserController) Info(writer http.ResponseWriter, request *http.Request) *result.WebResult {
user := this.checkUser(request)
//append the space info.
space := this.spaceDao.FindByUuid(user.SpaceUuid)
user.Space = space
return this.Success(user)
}