[CMF-checkins] CVS: CMF/CMFCore - RegistrationTool.py:1.16

Sidnei da Silva sidnei@x3ng.com.br
Tue, 20 Aug 2002 13:59:54 -0400


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv21486/CMFCore

Modified Files:
	RegistrationTool.py 
Log Message:
Fixed a wrong permission checking. Should be Add portal member instead of Add Portal Member. Changed to use AddPortalMember from CMFCorePermissions.

=== CMF/CMFCore/RegistrationTool.py 1.15 => 1.16 ===
--- CMF/CMFCore/RegistrationTool.py:1.15	Sat Aug  3 22:31:30 2002
+++ CMF/CMFCore/RegistrationTool.py	Tue Aug 20 13:59:54 2002
@@ -69,7 +69,7 @@
         '''Returns a boolean value indicating whether the user
         is allowed to add a member to the portal.
         '''
-        return _checkPermission('Add Portal Member', self.aq_inner.aq_parent)
+        return _checkPermission(AddPortalMember, self.aq_inner.aq_parent)
 
     security.declarePublic('testPasswordValidity')
     def testPasswordValidity(self, password, confirm=None):