Changeset 80
- Timestamp:
- 22 Oct 2005, 13:43:45 (19 years ago)
- Location:
- waeup_product/trunk
- Files:
-
- 8 added
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/permissions.py
r19 r80 22 22 """WAeUP Student Permissions 23 23 24 # - ' Chat Moderate' : Permission you need to moderate the chat24 # - 'University Manage' : Permission you need to manage a University 25 25 # 26 # - ' Chat Reply' : Permission you need to answer question26 # - 'Faculty Manage' : Permission you need to manage a Faculty 27 27 # 28 # - 'Chat Post' : Permission you need to post question 28 # - 'Department Manage' : Permission you need to manage a Department 29 # 29 30 30 31 """ … … 32 33 from Products.CMFCore.permissions import setDefaultRoles 33 34 34 #chatModerate = 'Chat Moderate' 35 #setDefaultRoles(chatModerate, ('Manager', 'Owner')) 36 # 37 #chatReply = 'Chat Reply' 38 #setDefaultRoles(chatReply, ('Manager', 'Owner')) 35 universityManage = "University Manage" 36 setDefaultRoles(universityManage, ('Manager', 'Owner')) 37 facultyManage = "Faculty Manage" 38 setDefaultRoles(facultyManage, ('Manager', 'Owner')) 39 departmentManage = "Department Manage" 40 setDefaultRoles(departmentManage, ('Manager', 'Owner')) 39 41 40 #chatPost = 'Chat Post'41 #setDefaultRoles(chatPost, ('Manager', 'Owner')) -
waeup_product/trunk/skins/waeup_student/process_waeup_login.py
r75 r80 11 11 waeup = context.portal_catalog(id = 'waeup')[0].getObject() 12 12 students = waeup.students 13 if "Students" in member.getGroups(): 13 ca = context 14 if "StudentManager" in member.getGroups(): 15 ca = waeup.students 16 elif "Students" in member.getGroups(): 14 17 ca = getattr(students,str(member)) 15 elif "StudentManager" in member.getGroups():16 ca = waeup.students17 18 #ma = ca[0].getObject() 18 19 return response.redirect(ca.absolute_url())
Note: See TracChangeset for help on using the changeset viewer.