Commit 7907f2abb9dc237781481b08d8cae7406114bc89
1 parent
0771942e
Exists in
master
and in
3 other branches
Adding create subject button to admin
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
subjects/templates/subjects/list.html
... | ... | @@ -93,7 +93,7 @@ |
93 | 93 | |
94 | 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 | 97 | <a href="{% url 'subjects:create' category.slug %}"><button class="create-subject-btn"> {% trans "Create new subject" %} </button></a> |
98 | 98 | {% endif %} |
99 | 99 | |
... | ... | @@ -149,7 +149,7 @@ |
149 | 149 | |
150 | 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 | 153 | <a href="{% url 'subjects:create' category.slug %}"><button class="create-subject-btn"> {% trans "Create new subject" %} </button></a> |
154 | 154 | {% endif %} |
155 | 155 | ... | ... |