source:
WAeUP_SRP/trunk/skins/waeup_default/isStaff.py
@
880
Last change on this file since 880 was 879, checked in by , 18 years ago | |
---|---|
File size: 370 bytes |
Rev | Line | |
---|---|---|
[879] | 1 | ## Script (Python) "isStaff" |
2 | ##bind container=container | |
3 | ##bind context=context | |
4 | ##bind namespace= | |
5 | ##bind script=script | |
6 | ##bind subpath=traverse_subpath | |
7 | ##parameters= | |
8 | ##title= | |
9 | ## | |
10 | # $Id: $ | |
11 | """ | |
12 | ||
13 | """ | |
14 | mtool = context.portal_membership | |
15 | if mtool.isAnonymousUser(): | |
16 | return False | |
17 | roles = mtool.getAuthenticatedMember().getRolesInContext(context) | |
18 | return not "Student" in roles | |
19 |
Note: See TracBrowser for help on using the repository browser.