Skip to content

30504 - Cleanup Permissions ff - #5029

Open
meawong wants to merge 1 commit into
bcgov:mainfrom
meawong:30504-Permissions-Flags-Cleanup
Open

meawong wants to merge 1 commit into
bcgov:mainfrom
meawong:30504-Permissions-Flags-Cleanup

Conversation

@meawong

@meawong meawong commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Issue #: /bcgov/entity#30504

Description of changes:

  • Remove enabled-deeper-permission-action and enable-permissions-for-action from flags.json and remove their code references
  • Make permission checks unconditional in business routes: AR reminder opt-out and filing submission authorization in business.py and business_filings.py
  • Make the affected filing-validation checks unconditional, including court-order details, good standing, amalgamation overrides, dissolution, incorporation, registration, and change-of-registration permissions. Remove the old flag-off fallback behavior from the filing validation services
  • Update affected tests to remove flag-on/off scaffolding and reflect the permission checks that now always apply. Add or retain authorized and denied cases for the relevant flows

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).

@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
8.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Each affected test module explicitly opts into the shared authorization fixture. Duplication ok.

@meawong meawong self-assigned this Dec 4, 2026

This branch has not been deployed

No deployments
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.

1 participant