[Zope-CMF] Remove Members?!
seb bacon
seb@jamkit.com
Tue, 18 Sep 2001 10:45:01 +0100
* marc lindahl <marc@bowery.com> [010917 23:36]:
> > From: Chris Withers <chrisw@nipltd.com>
> >
> > I see there is an API for adding members, btu where's the one for removing or
> > renaming them?
>
> Yeah, it would be handy to let members delete themselves, and for managers
> to delete and rename, maybe disable.
This should definitely be part of the API. It's simple enough to do:
This is implemented in the MembershipTool:
security.declareProtected('Manage portal members', 'delMembers')
def delMembers(self, names):
'delete a list of users'
acl_users = self.acl_users
if hasattr(acl_users, '_delUsers'):
acl_users._delUsers(names)
You just need to give Manager and Owner the 'Manage portal members'
permission.
seb