[Zope-CMF] Allow Manager to edit properties of other users
Chris Withers
chrisw@nipltd.com
Thu, 12 Dec 2002 18:30:30 +0000
Tom Cameron wrote:
> failMessage = context.portal_registration.testPropertiesValidity(REQUEST,
> member)
>
> if failMessage:
> REQUEST.set('portal_status_message', failMessage)
> return context.member_edit(context, REQUEST)
>
> member.setMemberProperties(REQUEST)
replace this line with:
context.portal_registration.editMember(member_id=member.getId(),
properties=REQUEST)
...should do it.
You can also use that method to set the roles and password of a member if you
need to. It's protected by the 'Manage Portal' permission.
cheers,
Chris