Skip to content

Bug 2062223 - #2758

Merged
dklawren merged 1 commit into
mozilla:masterfrom
dklawren:2062223
Sep 23, 2026
Merged

dklawren merged 1 commit into
mozilla:masterfrom
dklawren:2062223

Conversation

@dklawren

Copy link
Copy Markdown
Collaborator

Review carried over from private pull request
https://bugzilla.mozilla.org/show_bug.cgi?id=2062223

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The authorization fix is consistently applied and covered by focused regression scenarios.

Review effort: Balanced
Findings: None

What changed in this PR

Prevents unauthorized security-group removal during product moves while preserving valid automatic cleanup behavior.

Changes:

  • Requires group membership to remove valid restrictions.
  • Locks protected group controls in both interfaces.
  • Adds regression coverage for single- and multi-bug moves.
File Description
Bugzilla/​Bug.pm Enforces removal authorization and computes multi-bug group status.
template/​en/​default/​bug/​process/​verify-new-product.html.tmpl Preserves and locks existing restrictions during moves.
extensions/​BugModal/​lib/​WebService.pm Supplies lock state for BugModal group controls.
extensions/​BugModal/​template/​en/​default/​bug_modal/​new_product_groups.html.tmpl Disables protected group checkboxes.
t/​bmo/​security-group-declass-via-product-move.t Tests declassification prevention and supported move behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@dklawren
dklawren merged commit 2f4a05d into mozilla:master Sep 23, 2026
8 checks passed
@dklawren
dklawren deleted the 2062223 branch September 23, 2026 20:46
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.

2 participants