Commit bd797e50 authored by Evan Simpson's avatar Evan Simpson

Make "Set Access Rule" behave reasonably in the presence of legacy BeforeTraverse data structures.

parent 5580a453
......@@ -73,7 +73,10 @@ def getAccessRule(self, REQUEST=None):
self = self.this()
rules = queryBeforeTraverse(self, 'AccessRule')
if rules:
return rules[0][1].name
try:
return rules[0][1].name
except:
return 'Invalid BeforeTraverse data: ' + `rules`
return ''
constructors = (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment