UKHomeOffice / lev

Life Event Verification service prototype monorepo
https://lev-docs.netlify.app/
0 stars 1 forks source link

UI: Check for environment role before hitting API #11

Closed daniel-ac-martin closed 3 years ago

daniel-ac-martin commented 3 years ago

We break down permissions by staging environment so we should check the user has the right role before making a request to the API.

In the long run it would be nice to also check for this in React so that we don't even hit GraphQL unnecessarily.