Gating an endpoint by a key's role