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
Edit UI: Officers change filing saying Access Restricted when its being initiate from a non default account. #31349
Describe the bug in the current situation
When an Officer change filing is initiated from a Business that is affiliated with a secondary account, the UI throws a pop-up saying Access restricted
Impact of this bug
Officer Change fillings can't be initiated from the business affiliated to the secondary account
The account id is "646" in the BRD, the Business Dashboard and Edit UI. but Officer UI is defaulting to a different account id (the first account for this login).
Because the UIs are in different domains, the account id in session storage is not properly shared between the UIs.
As a work-around, most UIs pass along the account id as a URL parameter, and most UIs accept that and configure themselves accordingly.
In this scenario, Edit UI is not passing the account id as a URL parameter and I am not sure whether Officer (Person-Role) UI will accept it. We could implement this but it's still a work-around.
Ultimately, a new way to share account info between UIs will be implemented and will resolve THIS issue.
Take away - As Severin suggested, we can either add the query string when we jump off to the officer-change URL as a short term fix, or we can await the implementation of the new way to share account info that is incoming.
changed the title [-]Officers change filing saying Access Restricted when its being initiate from a secondary account.[/-][+]Officers change filing saying Access Restricted when its being initiate from a non default account.[/+]on Nov 19, 2025
We just decided in Standup that we'll wait to hear back from @JohnamLane before deciding whether to wait for new functionality or patch in a workaround (ie, account id in URL).
changed the title [-]Officers change filing saying Access Restricted when its being initiate from a non default account.[/-][+]Edit UI: Officers change filing saying Access Restricted when its being initiate from a non default account.[/+]on Dec 9, 2025
Activity
severinbeauvais commentedon Nov 18, 2025
The account id is "646" in the BRD, the Business Dashboard and Edit UI. but Officer UI is defaulting to a different account id (the first account for this login).
OlgaPotiagalova commentedon Nov 18, 2025
@JohnamLane, could you please review and see how this should be addressed.
severinbeauvais commentedon Nov 18, 2025
Because the UIs are in different domains, the account id in session storage is not properly shared between the UIs.
As a work-around, most UIs pass along the account id as a URL parameter, and most UIs accept that and configure themselves accordingly.
In this scenario, Edit UI is not passing the account id as a URL parameter and I am not sure whether Officer (Person-Role) UI will accept it. We could implement this but it's still a work-around.
Ultimately, a new way to share account info between UIs will be implemented and will resolve THIS issue.
TVWerdal commentedon Nov 19, 2025
This functionality appears to be implemented in the Officer Change form, but is not being sent by Edit UI.
Test:
Take away - As Severin suggested, we can either add the query string when we jump off to the officer-change URL as a short term fix, or we can await the implementation of the new way to share account info that is incoming.
[-]Officers change filing saying Access Restricted when its being initiate from a secondary account.[/-][+]Officers change filing saying Access Restricted when its being initiate from a non default account.[/+]severinbeauvais commentedon Nov 19, 2025
We just decided in Standup that we'll wait to hear back from @JohnamLane before deciding whether to wait for new functionality or patch in a workaround (ie, account id in URL).
FYI: @kialj876 @cameron-eyds @seeker25
severinbeauvais commentedon Nov 19, 2025
Travis, yes, thanks. This was FYI. A decision needs to be made on the immediate way ahead.
seeker25 commentedon Nov 21, 2025
Dietrich showed me this https://github.com/bcgov/connect-nuxt/blob/main/packages/layers/auth/app/middleware/01.setup-accounts.global.ts#L8
Old Nuxt layers doesn't have it? Maybe use new layer?
severinbeauvais commentedon Nov 21, 2025
Edit UI is apparently not setting the accountid URL parameter when navigating to Person Roles UI.
[-]Officers change filing saying Access Restricted when its being initiate from a non default account.[/-][+]Edit UI: Officers change filing saying Access Restricted when its being initiate from a non default account.[/+]severinbeauvais commentedon Dec 9, 2025
This was just discussed at Officers Readiness Meeting and Kial prefers Entities Team to fix this and I'm OK with that :)
severinbeauvais commentedon Dec 9, 2025
This is not high priority because the early adopters only use a single account each.
severinbeauvais commentedon Jan 26, 2026
Test Notes
Try going to the Officer Change UI from the (View and Change) Company Information page, for a business affiliated to the
gunanagar commentedon Feb 3, 2026
Tested, Looks good with Add officers/ Manage officers.