fix: show course settings only to moderators

This commit is contained in:
Jannat Patel
2023-06-07 16:53:46 +05:30
parent d076451ea8
commit 9198302f7e
2 changed files with 8 additions and 1 deletions
+2
View File
@@ -127,6 +127,7 @@
</div>
</div>
{% if is_moderator %}
<div class="field-group vertically-center">
<label for="published" class="vertically-center mb-0">
<input type="checkbox" id="published" {% if course.published %} checked {% endif %}>
@@ -137,6 +138,7 @@
{{ _("Upcoming") }}
</label>
</div>
{% endif %}
<div class="field-group">
<div>