Skip to content

refactor!: replace the COMPLEX_PERM_* extension points with a direct call - #6689

Merged
gharlan merged 1 commit into
6.xfrom
remove-complex-perm-extension-points
Sep 23, 2026
Merged

gharlan merged 1 commit into
6.xfrom
remove-complex-perm-extension-points

Conversation

@gharlan

@gharlan gharlan commented Sep 23, 2026

Copy link
Copy Markdown
Member

ComplexPermission::removeItem() and replaceItem() dispatched the extension points COMPLEX_PERM_REMOVE_ITEM / COMPLEX_PERM_REPLACE_ITEM, whose only listener was UserRole in the core itself. The indirection bought nothing, so both methods now call UserRole::replaceComplexPermItem() directly.

Breaking

  • The extension points COMPLEX_PERM_REMOVE_ITEM and COMPLEX_PERM_REPLACE_ITEM are removed. ComplexPermission::removeItem() / replaceItem() stay the public API for cleaning up role permissions.

Also

  • Adds UserRoleTest, the replace/remove logic had no test coverage before.
  • The static analysis baselines shrink accordingly (no new entries).

@gharlan gharlan added this to the REDAXO 6.0 milestone Sep 23, 2026
@gharlan
gharlan merged commit 7a56a64 into 6.x Sep 23, 2026
16 checks passed
@gharlan
gharlan deleted the remove-complex-perm-extension-points branch September 23, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants