MCPcopy Create free account
hub / github.com/53AI/53AIHub / isPermissionRelatedError

Function isPermissionRelatedError

api/controller/api_key.go:428–434  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

426}
427
428func isPermissionRelatedError(err error) bool {
429 if err == nil {
430 return false
431 }
432 message := err.Error()
433 return strings.Contains(message, "权限") || strings.Contains(message, "无权")
434}

Callers 7

UpdateRawFileContentFunction · 0.85
CreateAPIKeyMethod · 0.85
GetAPIKeysMethod · 0.85
DeleteAPIKeyMethod · 0.85
DisableAPIKeyMethod · 0.85
EnableAPIKeyMethod · 0.85
CreateLibraryFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected