Skip to content

Commit 860e13d

Browse files
authored
Merge pull request #28 from ConductorOne/bt/expand_user_grants
Also grant expand user access. Marcus reviewed this change.
2 parents 922affd + 33f4439 commit 860e13d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/connector/pages.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,10 @@ func (s *pageSyncer) Grants(ctx context.Context, resource *v2.Resource, pToken *
197197
},
198198
}
199199

200-
newGrant := grant.NewGrant(resource, fmt.Sprintf("%s:%s", "group", level), groupId, grant.WithAnnotation(grantExpandable))
200+
newGroupGrant := grant.NewGrant(resource, fmt.Sprintf("%s:%s", "group", level), groupId, grant.WithAnnotation(grantExpandable))
201+
newUserGrant := grant.NewGrant(resource, fmt.Sprintf("%s:%s", "user", level), groupId, grant.WithAnnotation(grantExpandable))
201202

202-
ret = append(ret, newGrant)
203+
ret = append(ret, newGroupGrant, newUserGrant)
203204
}
204205

205206
bag.Pop()

0 commit comments

Comments
 (0)