bloom-frontend
bloom-frontend copied to clipboard
Ensure PartnerAdminAuthguard is checking whether the admin is still active
Overview
We have recently created a new column for partner-admins. These partner-admins can now be set as "inactive". We need to check in our Auth guards that the partner admin is active.
Action Items
- [ ] Look at Partner admin auth guard bloom-frontend/guards/partnerAdminGuard.tsx
- [ ] Ensure that we are checking that the partner is active, looking at the state.partnerAdmin.active property
- [ ] Manually test that this is working by updating one of the partner admins in the database as inactive.
- [ ] Run Cypress tests to ensure nothing is broken
Resources/Instructions
- to set up different user roles please look to /bloom-frontend/BLOOM_USERS.md
- You will need to know how to manually change data in the database to update user roles. Or you can use Postman and ensure you have the authentication token for Bloom. You can look how to get one of these tokens in /bloom-frontend/CYPRESS.md