[quills-dev] [Collective-checkins] r49933 - in Quills/trunk: . tests
Tim Hicks tim at sitefusion.co.ukSun Sep 23 10:51:11 UTC 2007
- Previous message: [quills-dev] [Collective-checkins] r49933 - in Quills/trunk: . tests
- Next message: [quills-dev] [Quills Issue Tracker] Response to #110 - Contributor Role not sufficient to add blog content
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
quills-dev at lists.etria.com wrote: > Author: tomster > Date: Sun Sep 23 01:01:16 2007 > New Revision: 49933 > > Modified: > Quills/trunk/permissions.py > Quills/trunk/setuphandlers.py > Quills/trunk/tests/browser.rst > Log: > Not quite sure how, but this does indeed resolve the issue of contributors not being able to add new weblog content (or any other content for that matter: after this change they can now also add other types as they please -- which is the default behaviour for users with that role; our previous code seems to have broken that behaviour) > > Modified: Quills/trunk/permissions.py > ============================================================================== > --- Quills/trunk/permissions.py (original) > +++ Quills/trunk/permissions.py Sun Sep 23 01:01:16 2007 > @@ -11,7 +11,7 @@ > for atype in types: > permission = _formatPermissionForType(atype['portal_type']) > permissions[atype['portal_type']] = permission > - cmfpermissions.setDefaultRoles(permission, ('Manager','Owner')) > + cmfpermissions.setDefaultRoles(permission, ('Manager','Owner', 'Contributor')) IIUC, CMF's setDefaultRoles will *only* work with global zope roles, not with local roles (e.g. 'Contributor'). I guess it doesn't raise an error, but you can probably role back this particular part of your changeset without any effect... except for reducing possible confusion in the future :). Tim
- Previous message: [quills-dev] [Collective-checkins] r49933 - in Quills/trunk: . tests
- Next message: [quills-dev] [Quills Issue Tracker] Response to #110 - Contributor Role not sufficient to add blog content
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the quills-dev mailing list