Commit 822c2ee7 authored by Jim Fulton's avatar Jim Fulton

Fixed bug that allowed users with local roles gain priviledges on

acquired objects.  getRolesInContext did not used the correct context,
as defined by the inner-most object wrapping.
parent 2911792b
......@@ -84,7 +84,7 @@
##############################################################################
"""Access control package"""
__version__='$Revision: 1.90 $'[11:-2]
__version__='$Revision: 1.91 $'[11:-2]
import Globals, App.Undo, socket, regex
from Globals import HTMLFile, MessageDialog, Persistent, PersistentMapping
......@@ -133,6 +133,7 @@ class BasicUser(Implicit):
name=self.getUserName()
roles=self.getRoles()
local={}
object=getattr(object, 'aq_inner', object)
while 1:
if hasattr(object, '__ac_local_roles__'):
dict=object.__ac_local_roles__ or {}
......
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