Commit 7f1900c2 authored by Stefan H. Holek's avatar Stefan H. Holek

Merged trunk r77296 into 2.9 branch.

Collector #1306: Missing acquisition context on local roles screen.
parent 69046c8a
......@@ -8,6 +8,8 @@ Zope Changes
Bugs fixed
- Collector #1306: Missing acquisition context on local roles screen.
- Collector #2153: Supporting unquoted cookies with spaces.
- Collector #2295: Comments in PythonScripts could lead to syntax
......
......@@ -341,11 +341,12 @@ class RoleManager(ExtensionClass.Base, PermissionMapping.RoleManager):
if mlu < 0: raise OverflowError
un = getattr(aclu, 'user_names', _notfound)
if un is not _notfound:
un = aclu.__of__(item).user_names # rewrap
unl = un()
# maxlistusers of 0 is list all
if len(unl) > mlu and mlu != 0:
raise OverflowError
for name in un():
for name in unl:
dict[name]=1
item = getattr(item, 'aq_parent', _notfound)
if item is _notfound:
......
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