瀏覽代碼

fix: update user permissions validation was not working properly, fixes #8977

Torkel Ödegaard 8 年之前
父節點
當前提交
1372d2e517
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/api/dtos/user.go

+ 1 - 1
pkg/api/dtos/user.go

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