-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[SecurityBundle][TwigBridge] Add is_granted_for_user()
function
#59129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
6b16385
to
4d94858
Compare
user_is_granted()
function to twig
user_is_granted()
function to twiguser_is_granted()
function to twig
user_is_granted()
function to twiguser_is_granted()
function
We also need no raise the dependency to 7.3 in composer.json to make it work |
We should not need to do that. The dependency is optional. 🤔 |
Ok |
src/Symfony/Bundle/SecurityBundle/Resources/config/templating_twig.php
Outdated
Show resolved
Hide resolved
4d94858
to
e7e8182
Compare
Fixed BC break. |
e7e8182
to
bf8a1bf
Compare
bf8a1bf
to
46a4def
Compare
user_is_granted()
function is_granted_for_user()
function
46a4def
to
f00878d
Compare
f00878d
to
d7b5a82
Compare
I'm still holding on my comment in #59129 (comment) |
Better DX is desirable here so 👍 for stof's suggestion. It should be a |
d7b5a82
to
ae3b09c
Compare
Sounds good. Just wanted to make sure there was consensus on that. 👍 |
ae3b09c
to
82ff3a5
Compare
Thank you @natewiebe13. |
… (Nate Wiebe) This PR was merged into the 7.3 branch. Discussion ---------- [Security] Add docs for `is_granted_for_user()` function Fixes #20489 Adds docs for new twig function: * symfony/symfony#59129 Commits ------- e1c23c7 Add docs for is_granted_for_user() function
Twig function to accompany #48142