Commit 819f037e authored by Evan Simpson's avatar Evan Simpson

Handle ACCESS_NONE properly

parent 3e8672bc
...@@ -205,7 +205,7 @@ class ClassSecurityInfo(SecurityInfo): ...@@ -205,7 +205,7 @@ class ClassSecurityInfo(SecurityInfo):
# Collect protected attribute names in ac_permissions. # Collect protected attribute names in ac_permissions.
ac_permissions = {} ac_permissions = {}
for name, access in self.names.items(): for name, access in self.names.items():
if access in (ACCESS_PRIVATE, ACCESS_PUBLIC): if access in (ACCESS_PRIVATE, ACCESS_PUBLIC, ACCESS_NONE):
attr=getattr(classobj, name, None) attr=getattr(classobj, name, None)
try: attr.__roles__ = access try: attr.__roles__ = access
except: except:
......
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