Implement API._grantAccess using a decorator