mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Add getAuthenticator usage
Replace $app['authentication']->getUser() by $app->getAuthenticatedUser() replace twig app['authentication'].getUser() with corresponding method
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{% extends 'prod/Tooltip/Tooltip.html.twig' %}
|
||||
|
||||
{% set title %}
|
||||
app['authentication'].getUser().getDisplayName()
|
||||
app.getAuthenticatedUser().getDisplayName()
|
||||
{% endset %}
|
||||
{% set width = 300 %}
|
||||
{% set maxwidth = null %}
|
||||
@@ -12,12 +12,12 @@
|
||||
<img style="margin:14px 8px;" src="/skins/icons/user.png"/>
|
||||
</div>
|
||||
<div class="PNB" style="left:100px;">
|
||||
<h1> {{ app['authentication'].getUser().getDisplayName() }}</h1>
|
||||
<h1> {{ app.getAuthenticatedUser().getDisplayName() }}</h1>
|
||||
<ul>
|
||||
<li>{{ app['authentication'].getUser().getEmail() }}</li>
|
||||
<li>{{ app['authentication'].getUser().getCompany() }}</li>
|
||||
<li>{{ app['authentication'].getUser().getJob() }}</li>
|
||||
<li>{{ app['authentication'].getUser().getActivity() }}</li>
|
||||
<li>{{ app.getAuthenticatedUser().getEmail() }}</li>
|
||||
<li>{{ app.getAuthenticatedUser().getCompany() }}</li>
|
||||
<li>{{ app.getAuthenticatedUser().getJob() }}</li>
|
||||
<li>{{ app.getAuthenticatedUser().getActivity() }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user