[CMF-checkins] CVS: CMF/CMFDefault - MembershipTool.py:1.38
Yvo Schubbe
schubbe at web.de
Wed Sep 3 06:21:22 EDT 2003
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv24036/CMFDefault
Modified Files:
MembershipTool.py
Log Message:
Permission change:
- Replaced ManagePortal by ManageUsers in getRoster() and createMemberarea().
=== CMF/CMFDefault/MembershipTool.py 1.37 => 1.38 ===
--- CMF/CMFDefault/MembershipTool.py:1.37 Mon Sep 1 11:18:36 2003
+++ CMF/CMFDefault/MembershipTool.py Wed Sep 3 05:21:21 2003
@@ -31,6 +31,7 @@
from Products.CMFCore.Expression import Expression
from Products.CMFCore.CMFCorePermissions import ListPortalMembers
from Products.CMFCore.CMFCorePermissions import ManagePortal
+from Products.CMFCore.CMFCorePermissions import ManageUsers
from Products.CMFCore.CMFCorePermissions import View
from Document import addDocument
@@ -154,10 +155,10 @@
If Manager, return a list of all usernames. The mapping
contains the id and listed variables.
"""
- isManager = _checkPermission(ManagePortal, self)
+ isUserManager = _checkPermission(ManageUsers, self)
roster = []
for member in self.listMembers():
- if isManager or member.listed:
+ if isUserManager or member.listed:
roster.append({'id':member.getId(),
'listed':member.listed})
return roster
@@ -195,7 +196,7 @@
member = user
member_id = user_id
else:
- if _checkPermission(ManagePortal, self):
+ if _checkPermission(ManageUsers, self):
member = self.acl_users.getUserById(member_id, None)
if member:
member = member.__of__(self.acl_users)
More information about the CMF-checkins
mailing list