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:
@@ -30,8 +30,8 @@ class CheckAccessNode(Node):
|
|||||||
obj = Variable(self.obj).resolve(context)
|
obj = Variable(self.obj).resolve(context)
|
||||||
logger.debug('obj: %s' % obj)
|
logger.debug('obj: %s' % obj)
|
||||||
except VariableDoesNotExist:
|
except VariableDoesNotExist:
|
||||||
context[u'access'] = True
|
context[u'access'] = False
|
||||||
logger.debug('no obj, access True')
|
logger.debug('no obj, access False')
|
||||||
return u''
|
return u''
|
||||||
|
|
||||||
if not permission_list:
|
if not permission_list:
|
||||||
|
|||||||
Reference in New Issue
Block a user