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
This commit is contained in:
Roberto Rosario
2012-01-08 06:51:32 -04:00
parent 191386038c
commit 7ea9033c02

View File

@@ -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: