Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7ae5292

Browse filesBrowse files
bug #26273 [Security][Profiler] Display the original expression in 'Access 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: ![screenshot at 2018-02-22 18-22-28](https://user-images.githubusercontent.com/408368/36553752-798001ba-17fd-11e8-9539-254a25a01e60.png) after: ![after](https://user-images.githubusercontent.com/408368/36553856-b7449fe2-17fd-11e8-94cb-ddaf4f033511.png) Commits ------- 8f16c2e [Security][Profiler] Display the original expression in 'Access decision log'
2 parents ba2e6ed + 8f16c2e commit 7ae5292
Copy full SHA for 7ae5292

File tree

1 file changed

+8
-1
lines changed
Filter options

1 file changed

+8
-1
lines changed

‎src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,14 @@
317317
</td>
318318
<td>
319319
{% if decision.attributes|length == 1 %}
320-
{{ decision.attributes|first }}
320+
{% set attribute = decision.attributes|first %}
321+
{% if attribute.expression is defined %}
322+
Expression: <pre><code>{{ attribute.expression }}</code></pre>
323+
{% elseif attribute.type == 'string' %}
324+
{{ attribute }}
325+
{% else %}
326+
{{ profiler_dump(attribute) }}
327+
{% endif %}
321328
{% else %}
322329
{{ profiler_dump(decision.attributes) }}
323330
{% endif %}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.