hasProxyKeyPermission checks if the key has permission to access the group
(group *models.Group, key string)
| 127 | |
| 128 | // hasProxyKeyPermission checks if the key has permission to access the group |
| 129 | func 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 |
| 136 | func buildPath(isGroupSpecific bool, groupName string, channelType string, validationEndpoint string) string { |