Skip to content

Commit

Permalink
[SecurityBundle] fixed profiler template when the user is logged in b…
Browse files Browse the repository at this point in the history
…ut has no roles
  • Loading branch information
fabpot committed Mar 15, 2011
1 parent 345e2d3 commit 44c95f9
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -5,8 +5,8 @@
<img width="21" height="28" alt="Security" style="border-width: 0; vertical-align: middle; margin-right: 10px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAcCAYAAACOGPReAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAp1JREFUeNrkVU2LUmEUfq/eGs1RCFMG/AA/qIUyIpWEA02MCblw0YdLoZ2bdjEQuBb6Af2AwqV9bAMVmgIhqEWOEIToIC5EUUERNfXac2yulfeOUjmL6IXDvfe855z3Oec8573cdDpl614KdgrrVIJyK/Y3sB5oNJrdYwBCr9c7GA6HT/A+/NNDr/r9/veZTGaazWan9KRv0i9zUi7Z2wyFQs9isZi/3W6zTqfDut0u29nZMQHtpWKx+Bw2X+UceYfDIVFOJhOmVqu94XD4Gs/zDOn+cMA36Y+Ojrz9fv+dUinFxXs8HtmgKpVq7ywWUDFBEOZ79E367e3tvcFgIB/UarVKlMRdILKNx2Mmx2M61Gw2z/Y5TtprfklNBXISD5nTBUGO9cJJjrzFYpk1YRGpQqE4hDMyFyRcJqVWqz2ksiwi1el0jPP5fCwajc4CkZAhpYf3iwj8CXYqGTAD2HkQ8AvVFHaz4CTJZPI7+be2tuYIg8EgCwQC1JAzyOANDP0yNc8B0Q0MxQj8Zel0eo64VqtJJ4pOjUQizG63M1Dmtl6vf7lo02w274Byr0qlEkulUr+wY+WYggGX4/H4B7E0YoqJROIK6v3xdyfKC+d7Lpdr3+l0WqnGJISIpNVquRqNxjnYjSjjZRfKBuQW0tp1u913bTablTgsovyZUiSVSoWVy+VKoVB4gTIdYOu1eMlQ0E3IfYPBcB1TchOkPk+No3GEscjJxbLQGM/2qDHVarWdz+czQP8W2085NOIhbp7HRqORJ45RozB+kuLLXsawxTjPbInr9Xp9nMvlHnG4iUrotI1SPGksV17KKAehpycYUeZNJtMFSvNvl1gmisePRiPtOn8lYImWRz0+08iuMW6H+79/0f9O0G8CDAD1sUxLMA6q7wAAAABJRU5ErkJggg==" />
{% endset %}
{% set text %}
{% if collector.authenticated %}
{{ collector.user }}
{% if collector.user %}
{{ collector.user }} ({{ collector.authenticated ? 'auth.' : 'not auth.' }})
{% elseif collector.enabled %}
not authenticated
{% else %}
Expand All @@ -25,10 +25,11 @@

{% block panel %}
<h2>Security</h2>
{% if collector.authenticated %}
{% if collector.user %}
<p>
Username: <strong>{{ collector.user }}</strong><br />
Roles: {{ collector.roles|yaml_encode }}
Authenticated? <strong>{{ collector.authenticated ? 'yes' : 'no' }}</strong><br />
Roles: <strong>{{ collector.roles|yaml_encode }}</strong>
</p>
{% elseif collector.enabled %}
<p>
Expand Down

0 comments on commit 44c95f9

Please sign in to comment.