Skip to content

Add security support to Twig hook conditions - #387

Merged
loic425 merged 2 commits into
Sylius:mainfrom
loic425:is-granted-on-twig-hooks-condition
Sep 27, 2026
Merged

loic425 merged 2 commits into
Sylius:mainfrom
loic425:is-granted-on-twig-hooks-condition

Conversation

@loic425

@loic425 loic425 commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

This PR adds Symfony’s is_granted() function and authenticated user variable to Twig hook conditions. Hook context values remain accessible through _context.

@loic425
loic425 force-pushed the is-granted-on-twig-hooks-condition branch from 2252a92 to 3aea93c Compare September 25, 2026 15:50
@loic425 loic425 changed the title Add is_granted support to Twig hook conditions Add security support to Twig hook conditions Sep 25, 2026
@loic425
loic425 force-pushed the is-granted-on-twig-hooks-condition branch from 0ded49e to 3f5a3db Compare September 25, 2026 16:05
@loic425
loic425 merged commit 4b53ed6 into Sylius:main Sep 27, 2026
6 of 8 checks passed
@loic425
loic425 deleted the is-granted-on-twig-hooks-condition branch September 27, 2026 13:06
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