Skip to content

Commit 7e71910

Browse files
author
wladyslaw.dudko@gmail.com
committed
giving the administrator permission to create content
1 parent b4702c3 commit 7e71910

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/templates/edit.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<div class="">
2929
<div class="d-flex justify-content-between align-items-center mb-6">
3030
<h5 class="mb-0">{{ "page.contents"|translate_admin }}:</h5>
31-
{% if is_granted('ROLE_SUPER_ADMIN') %}
31+
{% if is_granted('ROLE_ADMIN') %}
3232
<a class="btn btn-outline-primary btn-sm rounded-pill"
3333
href="{{ path('page_add_new_content', {'id': entity.id}) }}">{{ "page.add_a_new_content"|translate_admin }}</a>
3434
{% endif %}
@@ -58,7 +58,7 @@
5858
</div>
5959
</div>
6060
{% else %}
61-
{% if not entity.isSeparateContent and is_granted('ROLE_SUPER_ADMIN') %}
61+
{% if not entity.isSeparateContent and is_granted('ROLE_ADMIN') %}
6262
<a class="btn btn-outline-primary btn-sm rounded-pill"
6363
href="{{ path('page_add_new_content', {'id': entity.id}) }}">{{ "page.add_a_new_content"|translate_admin }}</a>
6464
{% endif %}

0 commit comments

Comments
 (0)