diff --git a/tildes/tildes/templates/macros/comments.jinja2 b/tildes/tildes/templates/macros/comments.jinja2
index 4c7ad9d..f1de363 100644
--- a/tildes/tildes/templates/macros/comments.jinja2
+++ b/tildes/tildes/templates/macros/comments.jinja2
@@ -198,7 +198,7 @@
{% endif %}
{# Don't show the "View Markdown" button (or dropdown) if the user can edit #}
- {% if not request.has_permission("edit", comment) %}
+ {% if request.user and not request.has_permission("edit", comment) %}