Commit 858cdc26 authored by 's avatar

Added a fix for proxy role validation - the check to see if the user

had the required proxy roles to give did not take the context (and
thus local roles) into account.
parent a3319d23
......@@ -84,7 +84,7 @@
##############################################################################
"""DTML Method objects."""
__version__='$Revision: 1.33 $'[11:-2]
__version__='$Revision: 1.34 $'[11:-2]
from Globals import HTML, HTMLFile, MessageDialog
from string import join,split,strip,rfind,atoi,lower
......@@ -278,7 +278,7 @@ class DTMLMethod(cDocument, HTML, Acquisition.Implicit, RoleManager,
if user is not None:
user=user.hasRole
for r in roles:
if r and not user(None, (r,)):
if r and not user(self, (r,)):
user=None
break
......
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