diff --git a/conservancy/usethesource/templates/usethesource/comment_partial.html b/conservancy/usethesource/templates/usethesource/comment_partial.html index 6e8b7d595755fcc739af7db3adea583628303ec5..ea13549569525f6a1eac94c049290893b08ee0e9 100644 --- a/conservancy/usethesource/templates/usethesource/comment_partial.html +++ b/conservancy/usethesource/templates/usethesource/comment_partial.html @@ -1,8 +1,10 @@
{% if comment.attribute_to %}{{ comment.attribute_to }}{% else %}{{ comment.user }}{% endif %} — {{ comment.time }} - {% if user.is_staff %} + {% if request.user == comment.user or perms.usethesource.change_comment %} edit + {% endif %} + {% if request.user == comment.user or perms.usethesource.delete_comment %} delete {% endif %}