Skip to content

Business Edit UI: refactor roles to permissions #27188

Closed

Description

@severinbeauvais
  • change "isStaff" and "isSbcStaff" to isAuthorized(xxx) where xxx is a permission
  • remove or replace "isPremium" as needed
  • add list of permissions
  • implement isAuthorized
  • update unit tests
  • document and verify all changes

See what was done for Create UI in this PR: bcgov/business-create-ui#783

Activity

  1. added
    Entities Team
    on Apr 14, 2025
  2. changed the title [-]Business Edit UI: add role mixin[/-] [+]Business Edit UI: refactor roles to permissions[/+] on May 5, 2025
  3. severinbeauvais commented on May 16, 2025

    @severinbeauvais
    CollaboratorAuthor

    Test Notes

    This ticket changed all code instances of "if staff" to "is current user authorized to do XXX" (where XXX is an action aka permissions aka role). There should be no functional differences between the new code and the old code, since the new regular user roles and staff user roles match the previous requirements.

    See the following table for all code instances that were updated and a record of what I tested:
    https://docs.google.com/spreadsheets/d/13P4ZA19lJfXJX95N5OfQMu6jYuotDH6h2hDf2DnAv0E/edit?gid=1727138612#gid=1727138612

    Sample Filings

    Try these as both staff and BCREG0020:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Entities Team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions