--- a/HelloForge/helloforge/templates/lib.html
+++ b/HelloForge/helloforge/templates/lib.html
@@ -12,7 +12,8 @@
<div id="comment-${comment._id}"
style="padding-left: 10px; border-left: 1px solid grey">
Posted by <em>${comment.author().display_name}</em> at ${comment.timestamp}
- <a py:if="comment.author_id==c.user._id" href="comments/$comment._id/delete">[X]</a>
+ <a py:if="c.user._id and comment.author_id==c.user._id"
+ href="comments/$comment._id/delete">[X]</a>
<br/>
<p py:content="comment.text"/>
<div class="reply">