Extends filterUserField to pass the resource to all fieldGates, to allow for context-dependent decisions.
Also documents the use of fieldGates, and adds some hints about using relationships in defaultFields and allowedFields.
feature/include_artworks_when_fetching_purchase
in the Art Money API project.feature/include_artworks_when_fetching_purchase
to test it. Play around with the gate definition to allow/deny access.