Changeset 1221


Ignore:
Timestamp:
7 Jan 2007, 10:47:01 (18 years ago)
Author:
Henrik Bettermann
Message:

rolemap changed
condition for actions changed
delegetion of roles in students folder disabled

Location:
WAeUP_SRP/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/exportimport.py

    r1151 r1221  
    8585            students.manage_setLocalGroupRoles(groupid = 'ClearanceOfficers',
    8686                                              roles=('SectionReader',))
     87            students.manage_setLocalGroupRoles(groupid='MemberAdmins',
     88                                         roles=('SectionOfficer',))                                         
    8789            students.manage_setLocalGroupRoles(groupid = 'role:Student',
    8890                                              roles=('SectionReader',))
    8991        if accommodation is not None:
    9092            accommodation.manage_setLocalGroupRoles(groupid='role:Student',
    91                                          roles=('SectionReader',))                                             
     93                                         roles=('SectionReader',))
    9294    members = getattr(site.portal_directories,'members')
    9395    if members is not None:
  • WAeUP_SRP/trunk/profiles/default/actions.xml

    r1197 r1221  
    1313  </action>
    1414  <action title="Staff Login" action_id="login_staff" category="student"
    15      condition_expr="not: member"
    16      url_expr="string:${portal_url}/login_staff"
     15     condition_expr="not: member" url_expr="string:${portal_url}/login_staff"
    1716     visible="True">
    1817   <permission>View</permission>
     
    3736  </action>
    3837  <action title="Student Login" action_id="login_student" category="student"
    39      condition_expr="not:member"
    40      url_expr="string:${portal_url}/login_student"
     38     condition_expr="not:member" url_expr="string:${portal_url}/login_student"
    4139     visible="True">
    4240   <permission>View</permission>
     
    9391  </action>
    9492  <action title="Directories" action_id="directories" category="global"
    95      condition_expr="here/isSectionManager"
     93     condition_expr="python:portal.portal_directories.isSectionOfficer()"
    9694     url_expr="string:${portal_url}/cpsdirectory_view" visible="True">
    97    <permission>Modify portal content</permission>
     95   <permission>View</permission>
    9896  </action>
    9997  <action title="Portal Members" action_id="members" category="global"
    100      condition_expr="member"
    101      url_expr="string:${portal_url}/search_members_form" visible="True">
    102    <permission>Modify portal content</permission>
     98     condition_expr="python:portal.portal_directories.members.isSectionOfficer()"
     99     url_expr="string:${portal_url}/search_members_form"
     100     visible="True">
     101   <permission>View</permission>
    103102  </action>
    104103  <action title="Home" action_id="home" category="navigation"
    105      condition_expr="member" url_expr="string:${portal_url}/campus" visible="True">
     104     condition_expr="member" url_expr="string:${portal_url}/campus"
     105     visible="True">
    106106   <permission>View</permission>
    107107  </action>
     
    117117  </action>
    118118  <action title="Students" action_id="view_students" category="navigation"
    119      condition_expr="member"
     119     condition_expr="python:portal.campus.students.isStaff()"
    120120     url_expr="string:${portal_url}/campus/students" visible="True">
    121121   <permission>View</permission>
     
    131131   <permission>View</permission>
    132132  </action>
    133   <action title="Enquiries" action_id="support_anon" category="student_navigation"
    134      condition_expr="not:member" url_expr="string:${portal_url}/contact_admin_form"
    135      visible="True">
     133  <action title="Enquiries" action_id="support_anon"
     134     category="student_navigation" condition_expr="not:member"
     135     url_expr="string:${portal_url}/contact_admin_form" visible="True">
    136136   <permission>View</permission>
    137137  </action>
  • WAeUP_SRP/trunk/profiles/default/rolemap.xml

    r977 r1221  
    4343      <role name="SectionOfficer"/>
    4444    </permission>
     45    <permission name="Add portal members" acquire="True">
     46      <role name="SectionManager"/>
     47      <role name="SectionOfficer"/>
     48    </permission>   
    4549    <permission name="Review portal content" acquire="True">
    4650      <role name="Owner"/>
  • WAeUP_SRP/trunk/profiles/default/types/StudentsFolder.xml

    r1153 r1221  
    4343 <action title="Delegate" action_id="localroles" category="object"
    4444    condition_expr="here/isSectionOfficer" url_expr="string:${object_url}/folder_localrole_form"
    45     visible="True">
     45    visible="False">
    4646  <permission value="Modify portal content"/>
    4747 </action>
  • WAeUP_SRP/trunk/skins/waeup_student/getMemberInfo.py

    r1220 r1221  
    4545info['per_doc'] = student.personal.getContent()
    4646info['app_doc'] = student.personal.getContent()
     47#info['password'] = member.getPassword()
    4748return info
Note: See TracChangeset for help on using the changeset viewer.