type
FieldAccessRule
Authorize or redact one authored field value.
ctxFieldAccessContext- The field occurrence and surrounding operation state.
Returns (bool, error) Whether the field is allowed, or an evaluation error.
Example
func editorsOnly(ctx ridu.FieldAccessContext) (bool, error) {
return actorHasRole(ctx.Actor, "editor"), nil
}