MCPcopy Index your code
hub / github.com/coder/coder / idMatches

Function idMatches

coderd/rbac/allowlist.go:278–280  ·  view source on GitHub ↗
(scopeID, dbID string)

Source from the content-addressed store, hash-verified

276}
277
278func idMatches(scopeID, dbID string) bool {
279 return scopeID == dbID || scopeID == policy.WildcardSymbol || dbID == policy.WildcardSymbol
280}
281
282func intersectType(scopeType, dbType string) string {
283 if scopeType == dbType {

Callers 1

intersectAllowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected