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

Function allowListContainsAll

coderd/rbac/allowlist.go:230–240  ·  view source on GitHub ↗
(elements []AllowListElement)

Source from the content-addressed store, hash-verified

228}
229
230func allowListContainsAll(elements []AllowListElement) bool {
231 if len(elements) == 0 {
232 return false
233 }
234 for _, e := range elements {
235 if e.Type == policy.WildcardSymbol && e.ID == policy.WildcardSymbol {
236 return true
237 }
238 }
239 return false
240}
241
242// intersectAllow returns the set of permit entries that satisfy both the scope
243// element and the database allow list.

Callers 1

IntersectAllowListsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected