Skip to content

docs: Describe the voter as the only API permission-context event dispatcher (8.0) - #845

Draft
promptless-for-oss wants to merge 1 commit into
mautic:8.0from
Promptless:promptless/pr-17853-permission-context-voter-8.0
Draft

promptless-for-oss wants to merge 1 commit into
mautic:8.0from
Promptless:promptless/pr-17853-permission-context-voter-8.0

Conversation

@promptless-for-oss

Copy link
Copy Markdown
Contributor

Open in Promptless

Description

mautic/mautic#17853 removes MauticDenyAccessListener from the ApiBundle. The listener was never wired to any event, so ApiPermissionVoter is the only place that dispatches ApiPlatformPermissionContextEvent.

This PR updates the "API permission-context event" section of docs/plugin_extensions/api.rst:

  • Describes the permission voter as the only dispatch point and drops the deny-access listener.
  • Updates the getSecurityExpression(), getRequest(), and getAttributes() descriptions to match what the voter passes to the event. getRequest() returns null and getAttributes() returns an empty array.
  • Removes the note about telling the two dispatch paths apart.

Verified against ApiPermissionVoter::voteOnAttribute() and ApiPlatformPermissionContextEvent on 8.x. Vale reports no new findings.

Linked issue

None. Source change: mautic/mautic#17853

Screenshots or screen recordings

Not applicable.

Trigger Events

@coderabbitai

coderabbitai Bot commented Oct 15, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Comment thread docs/plugin_extensions/api.rst
Comment thread docs/plugin_extensions/api.rst
Comment thread docs/plugin_extensions/api.rst
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