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

Method CanAccessAllFields

runtime/security.go:173–176  ·  view source on GitHub ↗

CanAccessAllFields returns whether all fields in the resource are allowed.

()

Source from the content-addressed store, hash-verified

171
172// CanAccessAllFields returns whether all fields in the resource are allowed.
173func (r *ResolvedSecurity) CanAccessAllFields() bool {
174 // If there are no field access rules, all fields are allowed
175 return r.fieldAccess == nil
176}
177
178// CanAccessField evaluates whether a specific field in the resource is allowed.
179func (r *ResolvedSecurity) CanAccessField(field string) bool {

Callers 3

CanAccessFieldMethod · 0.95
applyExploreSecurityMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected