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:34 +01:00
parent a656d01bf5
commit 2f4da15264
2 changed files with 2 additions and 2 deletions

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 {

View File

@ -33,7 +33,7 @@ $yellow: #ECBB13;
$pink: #FF4444;
$purple: #9933CC;
$variable: #32D1DF;
$orange: #dF7518;
$orange: #eb7b18;
$brand-primary: $orange;
$brand-success: $green;