diff options
author | ankitjavalkar | 2020-10-14 18:23:55 +0530 |
---|---|---|
committer | ankitjavalkar | 2020-10-14 18:23:55 +0530 |
commit | e6df6090835c3368b2623189fa6919ebe2270e9e (patch) | |
tree | e1687e21384714f5271bc714ef3cc31e84d57e6a /yaksh | |
parent | 89519c5d4c2ac07687b98911b7db9618e5204b86 (diff) | |
download | online_test-e6df6090835c3368b2623189fa6919ebe2270e9e.tar.gz online_test-e6df6090835c3368b2623189fa6919ebe2270e9e.tar.bz2 online_test-e6df6090835c3368b2623189fa6919ebe2270e9e.zip |
Allow added teachers to delete course forum posts
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/templates/yaksh/course_forum.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/templates/yaksh/course_forum.html b/yaksh/templates/yaksh/course_forum.html index acd6861..b98688b 100644 --- a/yaksh/templates/yaksh/course_forum.html +++ b/yaksh/templates/yaksh/course_forum.html @@ -129,7 +129,7 @@ {% endwith %} </td> <td> - {% if user == course.creator %} + {% if user == course.creator or user in course.get_teachers %} <small><a href="{% url 'yaksh:hide_post' course.id post.uid %}" class="pull-right fa fa-trash"></i></a></small> {% endif %} </td> |