[CMF-checkins] SVN: CMF/branches/1.6/CMFDefault/RegistrationTool.py
Add postonly protection to member edit method
Alec Mitchell
apm13 at columbia.edu
Sat Mar 31 09:47:07 EDT 2007
Log message for revision 73953:
Add postonly protection to member edit method
Changed:
U CMF/branches/1.6/CMFDefault/RegistrationTool.py
-=-
Modified: CMF/branches/1.6/CMFDefault/RegistrationTool.py
===================================================================
--- CMF/branches/1.6/CMFDefault/RegistrationTool.py 2007-03-31 13:45:25 UTC (rev 73952)
+++ CMF/branches/1.6/CMFDefault/RegistrationTool.py 2007-03-31 13:47:07 UTC (rev 73953)
@@ -21,6 +21,7 @@
from Products.CMFCore.utils import _checkPermission
from Products.CMFCore.utils import getToolByName
+from Products.CMFCore.utils import postonly
from Products.CMFCore.ActionInformation import ActionInformation
from Products.CMFCore.Expression import Expression
from Products.CMFCore.ActionProviderBase import ActionProviderBase
@@ -199,6 +200,7 @@
, password=None
, roles=None
, domains=None
+ , REQUEST = None
):
""" Edit a user's properties and security settings
@@ -212,6 +214,7 @@
member.setSecurityProfile(password,roles,domains)
return member
+ editMember = postonly(editMember)
InitializeClass(RegistrationTool)
More information about the CMF-checkins
mailing list