From 7ea9033c02ff4f49fe6c898d50fa78edd5e9d376 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 8 Jan 2012 06:51:32 -0400 Subject: [PATCH] Change the default return value of the acl tag to False if there is no navigation object available * This fixes the creation views links for the anonymous users --- apps/acls/templatetags/acl_tags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/acls/templatetags/acl_tags.py b/apps/acls/templatetags/acl_tags.py index f76b29e424..20e96dbb2f 100644 --- a/apps/acls/templatetags/acl_tags.py +++ b/apps/acls/templatetags/acl_tags.py @@ -30,8 +30,8 @@ class CheckAccessNode(Node): obj = Variable(self.obj).resolve(context) logger.debug('obj: %s' % obj) except VariableDoesNotExist: - context[u'access'] = True - logger.debug('no obj, access True') + context[u'access'] = False + logger.debug('no obj, access False') return u'' if not permission_list: