diff options
author | James E. Blair <corvus@gnu.org> | 2009-07-27 21:23:49 -0700 |
---|---|---|
committer | James E. Blair <corvus@gnu.org> | 2009-07-27 21:23:49 -0700 |
commit | 1e68d73cdfd68ee441c2c952761305e3a122c487 (patch) | |
tree | 30a0cb903a37ab5640260b15f544c88e6d2a9252 | |
parent | 7b1cd29c8006045840c5473bbb2c9affa2461fec (diff) |
Fix bug viewing comments when anonymous.
-rw-r--r-- | quoins/templates/delete_post.html | 2 | ||||
-rw-r--r-- | quoins/templates/post.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/quoins/templates/delete_post.html b/quoins/templates/delete_post.html index 94df1d3..e81500a 100644 --- a/quoins/templates/delete_post.html +++ b/quoins/templates/delete_post.html | |||
@@ -68,7 +68,7 @@ | |||
68 | ${comment.created.strftime('%B %d, %Y at %I:%M %p')} | 68 | ${comment.created.strftime('%B %d, %Y at %I:%M %p')} |
69 | </span> | 69 | </span> |
70 | 70 | ||
71 | <span py:if="'blog-post' in [x.permission_name for x in tg.identity.user.permissions]"> | 71 | <span py:if="tg.identity and 'blog-post' in [x.permission_name for x in tg.identity.user.permissions]"> |
72 | | 72 | |
73 | <a href="${quoins.url('/delete_comment/%s'%comment.id)}"> | 73 | <a href="${quoins.url('/delete_comment/%s'%comment.id)}"> |
74 | Delete comment | 74 | Delete comment |
diff --git a/quoins/templates/post.html b/quoins/templates/post.html index d290f3b..fc606db 100644 --- a/quoins/templates/post.html +++ b/quoins/templates/post.html | |||
@@ -62,7 +62,7 @@ | |||
62 | ${comment.created.strftime('%B %d, %Y at %I:%M %p')} | 62 | ${comment.created.strftime('%B %d, %Y at %I:%M %p')} |
63 | </span> | 63 | </span> |
64 | 64 | ||
65 | <span py:if="'blog-post' in [x.permission_name for x in tg.identity.user.permissions]"> | 65 | <span py:if="tg.identity and 'blog-post' in [x.permission_name for x in tg.identity.user.permissions]"> |
66 | | 66 | |
67 | <a href="${quoins.url('/delete_comment/%s'%comment.id)}"> | 67 | <a href="${quoins.url('/delete_comment/%s'%comment.id)}"> |
68 | Delete comment | 68 | Delete comment |