MCPcopy Create free account
hub / github.com/rilldata/rill / CanAccess

Method CanAccess

runtime/security.go:165–170  ·  view source on GitHub ↗

CanAccess returns whether the resource can be accessed.

()

Source from the content-addressed store, hash-verified

163
164// CanAccess returns whether the resource can be accessed.
165func (r *ResolvedSecurity) CanAccess() bool {
166 if r.access == nil {
167 return false
168 }
169 return *r.access
170}
171
172// CanAccessAllFields returns whether all fields in the resource are allowed.
173func (r *ResolvedSecurity) CanAccessAllFields() bool {

Callers 15

CanAccessFieldMethod · 0.95
ResolveCanvasMethod · 0.80
TestResolveMetricsViewFunction · 0.80
ApplySecurityPolicyMethod · 0.80
newMetricsFunction · 0.80
newMetricsSQLFunction · 0.80
resolveMVAndSecurityFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestResolveMetricsViewFunction · 0.64
TestCompileFunction · 0.64