mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +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:
@@ -55,8 +55,8 @@
|
||||
{{ 'report::Modification du document -- je ne me souviens plus de quoi...' | trans }}
|
||||
{% endif %}
|
||||
<span class="actor">
|
||||
{% if app['acl'].get(app['authentication'].getUser()).has_right_on_base(record.get_base_id(), 'canreport') %}
|
||||
{% if done['user'] and done['user'].getId() != app['authentication'].getUser().getId() %}
|
||||
{% if app.getAclForUser(app.getAuthenticatedUser()).has_right_on_base(record.get_base_id(), 'canreport') %}
|
||||
{% if done['user'] and done['user'].getId() != app.getAuthenticatedUser().getId() %}
|
||||
{% set user_infos = done['user'].getDisplayName() %}
|
||||
{% trans with {'%user_infos%' : user_infos} %}report:: par %user_infos%{% endtrans %}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user