mirror of
https://github.com/eyebluecn/tank.git
synced 2024-04-21 12:32:16 +00:00
fix: add space into user info.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user