Changeset 52572

Show
Ignore:
Timestamp:
02/18/08 14:51:42 (2 years ago)
Author:
madarche
Message:

- #1892: "Make it possible to directly give read access to a blog".

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • CPS3/products/CPSDefault/trunk/MembershipTool.py

    r52462 r52572  
    430430        # Filter roles by portal type using prefix 
    431431        # TODO: relevant roles should be store in the portal_types tool 
    432         ptype_role_prefix = {'Section': ('Section', 'Contributor'), 
    433                              'Workspace': ('Workspace', 'Contributor'), 
    434                              'Members Workspace': ('Workspace', 'Contributor'), 
    435                              'Wiki': ('Contributor', 'Reader'), 
    436                              'Calendar': ('Workspace',), 
    437                              'CPSForum': ('Forum',), 
    438                              'Chat': ('Chat',), 
    439                              'CPS Calendar': ('Attendee',), 
    440                              'Blog': ('BlogManager', 'BlogPoster'), 
    441                              } 
     432        ptype_role_prefix = { 
     433            'Section': ('Section', 'Contributor'), 
     434            'Workspace': ('Workspace', 'Contributor'), 
     435            'Members Workspace': ('Workspace', 'Contributor'), 
     436            'Wiki': ('Contributor', 'Reader'), 
     437            'Calendar': ('Workspace',), 
     438            'CPSForum': ('Forum',), 
     439            'Chat': ('Chat',), 
     440            'CPS Calendar': ('Attendee',), 
     441            'Blog': ('BlogManager', 'BlogPoster', 'Contributor', 'Reader'), 
     442            } 
    442443        ptype = obj.portal_type 
    443444        if ptype in ptype_role_prefix.keys():