grafana-iam: Implement resourcepermission update (#110891)
* first go at update implementation * template tests * SQL tests * more tests * set namespace for read resource permissions * fix a bug with perms being removed right after they're added * remove unwanted changes * fix tests and check error * PR feedback * Update pkg/registry/apis/iam/resourcepermission/sql.go --------- Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
INSERT INTO {{ .Ident .PermissionTable }} (role_id, action, scope, created, updated, kind, attribute, identifier)
|
||||
VALUES (
|
||||
{{ .Arg $.RoleID }},
|
||||
{{ .Arg $.Permission.Action }},
|
||||
{{ .Arg $.Permission.Scope }},
|
||||
{{ .Arg $.Now }},
|
||||
{{ .Arg $.Now }},
|
||||
{{ .Arg $.Permission.Kind }},
|
||||
{{ .Arg $.Permission.Attribute }},
|
||||
{{ .Arg $.Permission.Identifier }}
|
||||
{{ .Arg .RoleID }},
|
||||
{{ .Arg .Permission.Action }},
|
||||
{{ .Arg .Permission.Scope }},
|
||||
{{ .Arg .Now }},
|
||||
{{ .Arg .Now }},
|
||||
{{ .Arg .Permission.Kind }},
|
||||
{{ .Arg .Permission.Attribute }},
|
||||
{{ .Arg .Permission.Identifier }}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user