mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Return actual user ID in UserProfileDTO
This fixes calls to /api/user where ID is currently always 0
This commit is contained in:
@@ -315,6 +315,7 @@ func GetUserProfile(query *m.GetUserProfileQuery) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
query.Result = m.UserProfileDTO{
|
query.Result = m.UserProfileDTO{
|
||||||
|
Id: user.Id,
|
||||||
Name: user.Name,
|
Name: user.Name,
|
||||||
Email: user.Email,
|
Email: user.Email,
|
||||||
Login: user.Login,
|
Login: user.Login,
|
||||||
|
|||||||
Reference in New Issue
Block a user