fix(http api): throw validation error if missing property in call to /api/admin/users/123/permissions, #7365

This commit is contained in:
Torkel Ödegaard
2017-01-26 08:54:51 +01:00
parent a656d01bf5
commit 2f4da15264
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ type AdminUpdateUserPasswordForm struct {
}
type AdminUpdateUserPermissionsForm struct {
IsGrafanaAdmin bool `json:"IsGrafanaAdmin"`
IsGrafanaAdmin bool `json:"isGrafanaAdmin" binding:"Required"`
}
type AdminUserListItem struct {