Added permissions section to admin > edit user view, an admin can now make another user admin, Closes #1517

This commit is contained in:
Torkel Ödegaard
2015-02-26 15:43:48 +01:00
parent c14a90a3d0
commit 7c241fd617
9 changed files with 81 additions and 14 deletions

View File

@@ -59,6 +59,11 @@ type ChangeUserPasswordCommand struct {
UserId int64 `json:"-"`
}
type UpdateUserPermissionsCommand struct {
IsGrafanaAdmin bool
UserId int64 `json:"-"`
}
type DeleteUserCommand struct {
UserId int64
}
@@ -120,9 +125,10 @@ type SignedInUser struct {
}
type UserDTO struct {
Email string `json:"email"`
Name string `json:"name"`
Login string `json:"login"`
Email string `json:"email"`
Name string `json:"name"`
Login string `json:"login"`
IsGrafanaAdmin bool `json:"isGrafanaAdmin"`
}
type UserSearchHitDTO struct {