You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Business Create UI: refactor roles to permissions #27187
you actually won't see a difference because old and new code are functionally equivalent
It is expected that the above change nothing functionally -- the updated Create UI pages should work just like the previous ones.
This ticket is a refactor of existing functionality, so we only need to test regular users, staff users, and SBC Staff users. When we add other account types (eg, Maximum, SBC Contact Centre, SBC Staff Tier 2) then their permissions will need a code change and they can be tested at that time.
The following code points were changed from "isPremium" to always show (if not staff):
show folio/reference number section (most filings)
dissolution show folio/reference number section
registration show folio/reference number section (disabled)
amalgamation filing restore folio number
continuation in filing restore folio number
incorporation application filing restore folio number
registration filing save folio number
registration filing restore transactional folio number
restoration filing save folio number
restoration filing restore transactional folio number
dissolution filing save folio number
dissolution filing restore transactional folio number
dissolution validate transactional folio number
amalgamation validate folio number
amalgamation show folio/reference number section
continuation in show folio/reference number section
continuation in validate folio/reference number
dissolution show transaction folio number section
firm dissolution show folio/reference number section
incorporation show folio/reference number section
registration show transactional folio number section
Activity
[-]Business Create UI: add role mixin[/-][+]Business Create UI: refactor roles to permissions[/+]severinbeauvais commentedon Apr 24, 2025
Outstanding questions
How are BCOL HD users identified -- do they have a particular Keycloak role(s) or auth role(s)? YES, role "maximus_staff".
Which "same access as staff"? We can decide this later. This ticket is a refactor only (mostly).
--
severinbeauvais commentedon Apr 29, 2025
Test Notes
This ticket:
ifStaff(and isSbcStaff) toifAuthorized(xxx)(where xxx is a particular permission/action)It is expected that the above change nothing functionally -- the updated Create UI pages should work just like the previous ones.
This ticket is a refactor of existing functionality, so we only need to test regular users, staff users, and SBC Staff users. When we add other account types (eg, Maximum, SBC Contact Centre, SBC Staff Tier 2) then their permissions will need a code change and they can be tested at that time.
The following code points were changed from "isPremium" to always show (if not staff):
severinbeauvais commentedon May 7, 2025
Sample Fetch Error dialog (is same for staff and regular user):
Sample Payment Error dialog with an error and warning (as staff):
Sample Payment Error dialog with no errors or warnings (as staff):
Sample Payment Error dialog with an error and warning (as regular user):
Sample Payment Error dialog with no errors or warnings (as regular user):