aboutsummaryrefslogtreecommitdiffstats
path: root/sneak_peek_tag
diff options
context:
space:
mode:
Diffstat (limited to 'sneak_peek_tag')
-rw-r--r--sneak_peek_tag/templatetags/sneak_peek.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/sneak_peek_tag/templatetags/sneak_peek.py b/sneak_peek_tag/templatetags/sneak_peek.py
index 977f90a..1873498 100644
--- a/sneak_peek_tag/templatetags/sneak_peek.py
+++ b/sneak_peek_tag/templatetags/sneak_peek.py
@@ -22,9 +22,7 @@ class SneakPeekWrapper(Node):
def render(self, context):
user = context['user']
-
- # TODO: update with permission check on user
- user_is_blessed = True
+ user_is_blessed = user.has_perm('sneak_peek_tag.can_view_sneak_peek')
if user_is_blessed:
content = self.nodelist.render(context)