Commit 5d1ac80c0ce0c3e74bbeaf86197c73eb8c009fbf

Authored by Felipe Henrique de Almeida Bormann
2 parents 30aba489 7907f2ab

Merge branch 'refactoring' of https://github.com/amadeusproject/amadeuslms into refactoring

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
subjects/templates/subjects/list.html
@@ -93,7 +93,7 @@ @@ -93,7 +93,7 @@
93 93
94 {{category.description|safe}} 94 {{category.description|safe}}
95 95
96 - {% if request.user in category.coordinators.all %} 96 + {% if request.user in category.coordinators.all or request.user.is_staff %}
97 <a href="{% url 'subjects:create' category.slug %}"><button class="create-subject-btn"> {% trans "Create new subject" %} </button></a> 97 <a href="{% url 'subjects:create' category.slug %}"><button class="create-subject-btn"> {% trans "Create new subject" %} </button></a>
98 {% endif %} 98 {% endif %}
99 99
@@ -149,7 +149,7 @@ @@ -149,7 +149,7 @@
149 149
150 {{category.description|safe}} 150 {{category.description|safe}}
151 151
152 - {% if request.user in category.coordinators.all %} 152 + {% if request.user in category.coordinators.all or request.user.is_staff %}
153 <a href="{% url 'subjects:create' category.slug %}"><button class="create-subject-btn"> {% trans "Create new subject" %} </button></a> 153 <a href="{% url 'subjects:create' category.slug %}"><button class="create-subject-btn"> {% trans "Create new subject" %} </button></a>
154 {% endif %} 154 {% endif %}
155 155