Changeset 167
- Timestamp:
- 12 Nov 2005, 16:17:03 (19 years ago)
- Location:
- waeup_product/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/WAeUPPermissions.py
r152 r167 32 32 UniversityManage = "University Manage" 33 33 setDefaultRoles(UniversityManage, ('Manager', 34 'Owner',))34 )) 35 35 # - 'Student Manage' : Permission you need to manage Students 36 36 # -
waeup_product/trunk/skins/waeup_default/temporary_view_all.py
r166 r167 11 11 request = context.REQUEST 12 12 url0 = request.get('URL0') 13 #return context.temporary_view_all_form(psm=psm) 13 14 if context.portal_membership.isAnonymousUser(): 14 15 return context.temporary_view_all_form(psm=psm) 15 16 else: 16 if url0.find(uname) > 0 or 'UniversityManager' in roles :17 if url0.find(uname) > 0 or 'UniversityManager' in roles or 'Manager' in roles: 17 18 return context.temporary_view_all_form(psm=psm) 18 elif 'Student' in roles: 19 res = cat(id=uname) 20 if len(res) > 0: 21 return res[0].getObject().temporary_view_all_form(psm=psm) 19 elif 'Student' in roles and 'StudentManager' not in roles: 20 res = cat(pathindex="/portal/sections/students/%s" % uname) 21 for r in res: 22 if r.getPath().endswith("students/%s" % uname): 23 return r.getObject().temporary_view_all_form(psm=psm) 22 24 return context.temporary_view_all_form(psm=psm)
Note: See TracChangeset for help on using the changeset viewer.