diff options
-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 |