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

Function hasPath

backend/api/v1/acl.go:227–237  ·  view source on GitHub ↗
(fieldMask *fieldmaskpb.FieldMask, want string)

Source from the content-addressed store, hash-verified

225}
226
227func hasPath(fieldMask *fieldmaskpb.FieldMask, want string) bool {
228 if fieldMask == nil {
229 return false
230 }
231 for _, path := range fieldMask.Paths {
232 if path == want {
233 return true
234 }
235 }
236 return false
237}
238
239func doIAMPermissionCheck(ctx context.Context, iamManager *iam.Manager, fullMethod string, user *store.UserMessage, authContext *common.AuthContext) (bool, []string, error) {
240 if auth.IsAuthenticationSkipped(fullMethod, authContext) {

Callers 1

getResourceFromRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected