[Zope-CMF] [dev] MembershipTool: Permissions

Tres Seaver tseaver at zope.com
Tue Sep 2 20:26:06 EDT 2003


On Tue, 2003-09-02 at 08:22, Yuppie wrote:
> Hi!
> 
> 
> 'Manage portal' protects many different methods. For a customer project 
> I need a 'User Manager' Role that should not have access to all the 
> other methods guarded by 'Manage portal'.
> 
> Would anybody mind if I replace
>    _checkPermission(ManagePortal, self)
> by
>    _checkPermission('Manage users', self)
> 
> in MembershipTool.getRoster() and MembershipTool.createMemberarea() ?

Can you add the name ManageUsers to CMFCorePermissions and use it as
named, rather than as a string literal?  Otherwise, I'm fine with the
change.

> If there are no objections or better ideas, I'll change this in cvs head.
> 
> 
> Cheers,
> 	Yuppie
> 
> 
> 
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF at zope.org
> http://mail.zope.org/mailman/listinfo/zope-cmf
> 
> See http://collector.zope.org/CMF for bug reports and feature requests
-- 
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com





More information about the Zope-CMF mailing list