MCPcopy Create free account
hub / github.com/tbphp/gpt-load / hasProxyKeyPermission

Function hasProxyKeyPermission

internal/handler/integration_handler.go:129–133  ·  view source on GitHub ↗

hasProxyKeyPermission checks if the key has permission to access the group

(group *models.Group, key string)

Source from the content-addressed store, hash-verified

127
128// hasProxyKeyPermission checks if the key has permission to access the group
129func hasProxyKeyPermission(group *models.Group, key string) bool {
130 _, exists1 := group.ProxyKeysMap[key]
131 _, exists2 := group.EffectiveConfig.ProxyKeysMap[key]
132 return exists1 || exists2
133}
134
135// buildPath returns the appropriate path based on request type and channel type
136func buildPath(isGroupSpecific bool, groupName string, channelType string, validationEndpoint string) string {

Callers 1

GetIntegrationInfoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected