Skip to content

Conversation

@Rajandeep98
Copy link
Collaborator

@Rajandeep98 Rajandeep98 commented Jan 14, 2026

Issue #: /bcgov/entity#31949
bcgov/entity#31918
bcgov/entity#31919

Description of changes:
Limit The Access to staff filings :

AMALGAMATIONOUT
CONTINUATIONOUT
COURTORDER
PUTBACKON
PUTBACKOFF
ADMIN_FREEZE
REGISTRARSNOTATION
REGISTRARSORDER
CHANGEOFLIQUIDATORS
CHANGEOFRECEIVERS
CONVERSION
CORRECTION
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the lear license (Apache 2.0).

@Rajandeep98 Rajandeep98 self-assigned this Jan 14, 2026
@Rajandeep98 Rajandeep98 marked this pull request as ready for review January 14, 2026 17:20
Copy link
Collaborator

@loneil loneil left a comment

Choose a reason for hiding this comment

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

Think it will do the trick but couple minor question/comment

Comment on lines 198 to 207
staff_filing_types = [
CoreFiling.FilingTypes.AMALGAMATIONOUT.value,
CoreFiling.FilingTypes.CONTINUATIONOUT.value,
CoreFiling.FilingTypes.COURTORDER.value,
CoreFiling.FilingTypes.PUTBACKON.value,
CoreFiling.FilingTypes.PUTBACKOFF.value,
CoreFiling.FilingTypes.ADMIN_FREEZE.value,
CoreFiling.FilingTypes.REGISTRARSNOTATION.value,
CoreFiling.FilingTypes.REGISTRARSORDER.value
]
Copy link
Collaborator

@loneil loneil Jan 14, 2026

Choose a reason for hiding this comment

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

Is there anything more global to the application already (maybe not?) than this local list for "what is a staff filing" that could be used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated

CoreFiling.FilingTypes.REGISTRARSORDER.value
]

if filing_type in staff_filing_types:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Be good to add this additional logic to unit testing in test_permissions.py

CoreFiling.FilingTypes.ADMIN_FREEZE.value,
CoreFiling.FilingTypes.REGISTRARSNOTATION.value,
CoreFiling.FilingTypes.REGISTRARSORDER.value
]
Copy link
Collaborator

Choose a reason for hiding this comment

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

missing changeOfLiquidators, changeOfReceivers, conversion, correction, dissolution (administrative)

Copy link
Collaborator Author

@Rajandeep98 Rajandeep98 Jan 15, 2026

Choose a reason for hiding this comment

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

added, admin dissolution being controlled by its own dissolution permission being added to role (such as public only has voluntary dissolution)
image

Copy link
Collaborator

@severinbeauvais severinbeauvais left a comment

Choose a reason for hiding this comment

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

How does this PR solve the problem described in the ticket?

@Rajandeep98 Rajandeep98 merged commit 8561e7b into bcgov:main Jan 16, 2026
3 of 4 checks passed
CoreFiling.FilingTypes.CHANGEOFRECEIVERS.value,
CoreFiling.FilingTypes.CONVERSION.value,
CoreFiling.FilingTypes.CORRECTION.value
]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this being done separately from the other filings (eg, lines 153-196 below)?

The existing permissions mappings/tables should be able to handle staff filings types and staff permissions.

What the code above does is hard-code some of these mappings, which I think is a bad idea.

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