Open kjamieson-sdm opened 1 day ago
While very unlikely (IMO), this could technically be a breaking change if some existing caller is passing a map[EntityUID]Entity
to IsAuthorized
instead of a EntityMap
.
If we think that risk is too great, we can fall back to the alternative of introducing some new IsAuthorized
or Authorizer
implementation under x/exp instead.
This changes the
PolicySet
IsAuthorized()
method to take anEntityGetter
interface instead of a concreteEntityMap
instance, allowing alternative entity getter implementations to be passed to the authorization.