MCPcopy Create free account
hub / github.com/bytebase/bytebase / containsActiveEndUser

Function containsActiveEndUser

backend/api/v1/workspace_service.go:570–577  ·  view source on GitHub ↗
(users []*store.UserMessage)

Source from the content-addressed store, hash-verified

568}
569
570func containsActiveEndUser(users []*store.UserMessage) bool {
571 for _, user := range users {
572 if user.Type == storepb.PrincipalType_END_USER && !user.MemberDeleted {
573 return true
574 }
575 }
576 return false
577}

Callers 2

LeaveWorkspaceMethod · 0.85
SetIamPolicyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected