Skip to content

Commit fa0fa88

Browse files
committed
skip 'No access' role
1 parent 6187ac8 commit fa0fa88

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/connector/collaborator.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ import (
2020
"github.com/grpc-ecosystem/go-grpc-middleware/logging/zap/ctxzap"
2121
)
2222

23+
const (
24+
noAccessRoleName = "No access"
25+
)
26+
2327
var _ connectorbuilder.ResourceSyncerV2 = (*collaboratorBuilder)(nil)
2428

2529
type collaboratorBuilder struct {
@@ -201,6 +205,8 @@ func (o *collaboratorBuilder) collaboratorRoleGrants(ctx context.Context, sessio
201205
Resource: roleId,
202206
},
203207
}
208+
case role.RoleName == noAccessRoleName:
209+
continue
204210
case !o.disableCustomRolesSync:
205211
customRole := getRoleByName(ctx, session, role.RoleName)
206212
if customRole == nil {

0 commit comments

Comments
 (0)