Commit 2f4da152 by Torkel Ödegaard

fix(http api): throw validation error if missing property in call to…

fix(http api): throw validation error if missing property in call to /api/admin/users/123/permissions, #7365
parent a656d01b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment