From 76ed60064d10bec3134913e6a271efd388381b47 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 31 Oct 2022 16:33:39 +0100 Subject: [PATCH] change json command parameter names from userID to userId and teamID to teamId (#57902) (#57913) (cherry picked from commit 5c1a1c8318bec43dec6aaf130aaafda3f19e54a6) Co-authored-by: Ieva --- pkg/services/accesscontrol/models.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/services/accesscontrol/models.go b/pkg/services/accesscontrol/models.go index c0eaf07980c..a472ad22c40 100644 --- a/pkg/services/accesscontrol/models.go +++ b/pkg/services/accesscontrol/models.go @@ -262,9 +262,9 @@ func (p *ResourcePermission) Contains(targetActions []string) bool { } type SetResourcePermissionCommand struct { - UserID int64 `json:"userID"` - TeamID int64 `json:"teamID"` - BuiltinRole string `json:"builtinRole"` + UserID int64 `json:"userId,omitempty"` + TeamID int64 `json:"teamId,omitempty"` + BuiltinRole string `json:"builtInRole,omitempty"` Permission string `json:"permission"` }