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

pull/7377/head
Torkel Ödegaard 8 years ago
parent a656d01bf5
commit 2f4da15264
  1. 2
      pkg/api/dtos/user.go
  2. 2
      public/sass/_variables.dark.scss

@ -31,7 +31,7 @@ type AdminUpdateUserPasswordForm struct {
}
type AdminUpdateUserPermissionsForm struct {
IsGrafanaAdmin bool `json:"IsGrafanaAdmin"`
IsGrafanaAdmin bool `json:"isGrafanaAdmin" binding:"Required"`
}
type AdminUserListItem struct {

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

Loading…
Cancel
Save