def granted
import near-v-framework@0.4.0.0/domain/architecture/environment/agreement/ops.bend as Opsimport Base
import near-v-framework@0.4.0.0/domain/architecture/environment/agreement/type.bend as G
74# What `person` is granted on `scope`; [] when nothing is granted there.
75def granted(a: G.Agreement, +person: String, +scope: String) -> List<&2, String>:
76 match a:
77 case G.Agreement{_, _, grants, _}:
78 granted.go(grants, person, scope)