Changeset 885 for WAeUP_SRP/trunk/skins/waeup_default/isStaff.py
- Timestamp:
- 17 Nov 2006, 16:06:47 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_default/isStaff.py
r879 r885 9 9 ## 10 10 # $Id: $ 11 """12 11 13 """14 12 mtool = context.portal_membership 15 if mtool.isAnonymousUser(): 16 return False 17 roles = mtool.getAuthenticatedMember().getRolesInContext(context) 18 return not "Student" in roles 13 member = mtool.getAuthenticatedMember() 14 roles = member.getRolesInContext(context) 19 15 16 return "SectionManager" in roles or\ 17 "ClearanceOfficer" in roles or\ 18 "ClearanceOfficers" in member.getGroups()
Note: See TracChangeset for help on using the changeset viewer.