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:
parent
98b6cc0c08
commit
026c850504
1 changed files with 6 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue