-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Security][Profiler] Display the original expression in 'Access decision log' #26273
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
[Security][Profiler] Display the original expression in 'Access decision log' #26273
Conversation
e4f3ae7
to
c2d42ae
Compare
I suggest also adding my patch from #24127 (comment) (the second one), to use We might even consider this as a bugfix. |
{{ decision.attributes|first }} | ||
{% set first = decision.attributes|first %} | ||
{% if first.expression is defined %} | ||
Expression: <code><pre>{{ first.expression }}</pre></code> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be <pre><code></code></pre>
as <code>
is an inline element while <pre>
is a block element.
c2d42ae
to
afcd558
Compare
@stof I addressed your comments. |
Looks like a bug fix to me, no? |
afcd558
to
8f16c2e
Compare
I have rebased my branch onto 3.4, and changed the base branch for this PR in order to merge it as a bug fix. |
Thank you @lyrixx. |
…ccess decision log' (lyrixx) This PR was merged into the 3.4 branch. Discussion ---------- [Security][Profiler] Display the original expression in 'Access decision log' | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #24127 | License | MIT | Doc PR | --- before:  after:  Commits ------- 8f16c2e [Security][Profiler] Display the original expression in 'Access decision log'
before:
after: