From 937752d275dc038747db5f526b7e1f433f81d51a Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Mon, 7 Jul 2014 15:31:25 +0200 Subject: [PATCH] PHRAS-181 #fix edit button action display according to user rights --- templates/web/prod/WorkZone/Macros.html.twig | 43 ++++++-------------- 1 file changed, 12 insertions(+), 31 deletions(-) diff --git a/templates/web/prod/WorkZone/Macros.html.twig b/templates/web/prod/WorkZone/Macros.html.twig index 33a231dc53..d428aa3ecf 100644 --- a/templates/web/prod/WorkZone/Macros.html.twig +++ b/templates/web/prod/WorkZone/Macros.html.twig @@ -7,10 +7,7 @@
{% set content = WorkZone.getContent(srt) %} - {% for basket in content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::VALIDATIONS')) %} - -
{% trans 'action::exporter' %}
- + {% if app['authentication'].getUser().ACL().has_right('modifyrecord') %} + + {% endif %}
Lightbox @@ -75,17 +74,10 @@
-
- -
- +
{% endfor %} - - {% for basket in content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::BASKETS')) %} - -
- -
- +
{% endfor %} {% for story in content.get(constant('\\Alchemy\\Phrasea\\Helper\\WorkZone::STORIES')) %} - -
{% trans 'action::exporter' %}
+ {% if app['authentication'].getUser().ACL().has_right('modifyrecord') %} - + {% endif %} -
- -
- - - - +
{% endfor %} - {% endmacro %}