SVN: CMF/branches/1.6/CMFDefault/RegistrationTool.py Add postonly protection to member edit method
Alec Mitchell <[email protected]> Sat, 31 Mar 2007 09:47:07 -0400 (EDT)
| Newsgroups | gmane.comp.web.zope.cmf.cvs |
|---|---|
| Message-ID | <20070331134707.EFBA02032F4__33743.5872563676$1175348837$gmane$org@mail.zope.org> |
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)