Avoid printing reply link to regular users

don't want it for admins either but that'll wait on official D8 FlatComments
which Gnuget ported already: https://www.drupal.org/project/flatcomments/issues/2820578
This commit is contained in:
benjamin melançon 2018-12-25 11:45:30 -05:00
parent 98b6cc0c08
commit 026c850504

View file

@ -97,6 +97,11 @@
<h3{{ title_attributes.addClass('title', 'is-5') }}>{{ comment.label }}</h3>
{{ title_suffix }}
{% endif %}
{{ content }}
{{ content|without('links') }}
{# Until we have FlatComments in D8 officially, we'll do this. Gnuget did
the port: https://www.drupal.org/project/flatcomments/issues/2820578 #}
{% if user.hasPermission('administer comments') %}
{{ content.links }}
{% endif %}
</div>
</article>