Ignore:
Timestamp:
26 Oct 2005, 12:21:25 (19 years ago)
Author:
joachim
Message:

=make anonymous work

Location:
waeup_product/trunk/skins/waeup_default
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/skins/waeup_default/getWAeUPTypes.py

    r89 r90  
    3232                 'name': 'action_view',
    3333                 'action': 'university_view',
    34                  'condition': "python:'Manager' in member.getRoles()",
     34                 'condition': "python:member and 'Manager' in member.getRoles()",
    3535                 'permissions': (View,)},
    3636                {'id': 'addFaculty',
     
    4141                 'name': 'action_folder_contents',
    4242                 'action': 'folder_contents',
    43                  'condition': "python:'Manager' in member.getRoles()",
     43                 'condition': "python:member and 'Manager' in member.getRoles()",
    4444                 'permissions': (ModifyPortalContent,UniversityManage,)},
    4545                {'id': 'edit',
    4646                 'name': 'action_edit',
    4747                 'action': 'cpsdocument_edit_form',
    48                  #'action': 'cpsdocument_edit_form',
    49                  'condition': "python:'Manager' in member.getRoles()",
     48                 'condition': "python:member and 'Manager' in member.getRoles()",
    5049                 'permissions': (ModifyPortalContent,UniversityManage,)},
    5150                {'id': 'metadata',
    5251                 'name': 'action_metadata',
    5352                 'action': 'cpsdocument_metadata',
    54                  'condition': "python:'Manager' in member.getRoles()",
     53                 'condition': "python:member and 'Manager' in member.getRoles()",
    5554                 'permissions': (ModifyPortalContent,)},
    5655                {'id': 'localroles',
     
    9291                'name'      : 'Add Content',
    9392                'action'    : 'string:${object/absolute_url}/folder_factories',
    94                  'condition': "python:'Manager' in member.getRoles()",
     93                'condition': "python:member and 'Manager' in member.getRoles()",
    9594                'permissions': (StudentManage,)},
    9695                {
     
    152151          'name': 'action_metadata',
    153152          'action': 'cpsdocument_metadata',
    154           'condition': "python:'Manager' in member.getRoles()",
     153          'condition': "python:member and 'Manager' in member.getRoles()",
    155154          'permissions': (UniversityManage,)},
    156155          )
     
    251250          'name'      : 'Add Content',
    252251          'action'    : 'string:${object/absolute_url}/folder_factories',
    253           'condition': "python:'Manager' in member.getRoles()",
     252          'condition': "python:member and 'Manager' in member.getRoles()",
    254253          'permissions': (StudentManage,)},
    255254         {'id': 'metadata',
     
    304303          'name': 'action_metadata',
    305304          'action': 'cpsdocument_metadata',
    306           'condition': "python:'Manager' in member.getRoles()",
     305          'condition': "python:member and 'Manager' in member.getRoles()",
    307306          'permissions': (UniversityManage,)},
    308307          )
  • waeup_product/trunk/skins/waeup_default/university_view.py

    r89 r90  
    77member = context.portal_membership.getAuthenticatedMember()
    88
    9 if member:
     9if not context.portal_membership.isAnonymousUser:
    1010    if 'Manager' in member.getRoles():
    1111        return context.folder_view()
Note: See TracChangeset for help on using the changeset viewer.