Skip to content

Commit 9163296

Browse files
do not look at non-managed and inherited permissions when compiling the list of permissions to set (#2252)
1 parent 807a612 commit 9163296

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/resources/grafana/common_resource_permission_sdk2.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ deleteLoop:
220220
addLoop:
221221
for _, new := range permissions {
222222
for _, current := range listResp.Payload {
223+
// Only managed and non-inherited permissions can be provisioned through this resource, so we disregard the permissions obtained through custom and fixed roles here
224+
if !current.IsManaged || current.IsInherited {
225+
continue
226+
}
223227
if areEqual(current, new) {
224228
continue addLoop
225229
}

0 commit comments

Comments
 (0)