Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix not in good standing staff change business information #78

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

BrandonSharratt
Copy link
Collaborator

*Issue:*bcgov/entity#24459

Description of changes:
Changed the function to not allow staff to change business info on not in good standing businesses

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

@BrandonSharratt BrandonSharratt self-assigned this Nov 25, 2024
@BrandonSharratt
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

bcregistry-sre commented Nov 26, 2024

@BrandonSharratt BrandonSharratt merged commit 0a8c1cc into bcgov:main Nov 26, 2024
6 checks passed
if (!currentBusiness.value.goodStanding) {
// todo: add staff exclusion. Staff should not be allowed to skip rules for business
// as if this is enabled, and not in good standing, only thing that will come is popup warning
if (!currentBusiness.value.goodStanding && !hasRoleStaff) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused by the logic: "if the business is not in good standing and this isn't staff then don't disable the action" ?

Also, please compare your temporary URL with the dev one -- specifically, click on View and Change Business Information. Why do I see the voluntary dissolution dialog?

Note that, in Dev, View and Change Business Information is enabled when I am staff - see https://dev.business.bcregistry.gov.bc.ca/BC0870818/.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic is pulled right out of business-filings-ui https://github.com/bcgov/business-filings-ui/blob/29cc2f6b204f3755ad13eafd45aa4e524337b071/src/components/EntityInfo/EntityMenu.vue#L400

The example you sent is allowed because the staff user falls into the base case return !this.isAllowed(AllowableActions.BUSINESS_INFORMATION)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants