Commit 53db5d28 authored by Jim Fulton's avatar Jim Fulton

Fixed bug that caused permission settings to be made to class

attributes, causing an apparent role leak.
parent e3682871
"""Access control support"""
__version__='$Revision: 1.15 $'[11:-2]
__version__='$Revision: 1.16 $'[11:-2]
from Globals import HTMLFile, MessageDialog
......@@ -283,7 +283,7 @@ class Permission:
if hasattr(attr, '__roles__'):
data=attr.__roles__
if data is None: data=[]
elif type(data) is not ListType: data=list(data)
else: data=list(data)
else: data=[]
for role in roles: data.append(role)
first=0
......@@ -308,7 +308,7 @@ class Permission:
if hasattr(attr, '__roles__'):
data=attr.__roles__
if data is None: data=[]
elif type(data) is not ListType: data=list(data)
else: data=list(data)
else: data=['Shared']
for role in roles:
if role in data: data.remove(role)
......
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