Last change
on this file since 16680 was
1972,
checked in by Henrik Bettermann, 18 years ago
|
was not yet changed in the file system
|
File size:
386 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 | mtool = context.portal_membership |
---|
[1972] | 13 | if mtool.isAnonymousUser(): |
---|
| 14 | return False |
---|
[885] | 15 | member = mtool.getAuthenticatedMember() |
---|
[1957] | 16 | member_id = str(member) |
---|
[1959] | 17 | o = ord(member_id[1]) |
---|
| 18 | return not (o >= 48 and o <= 57) |
---|
[1972] | 19 | |
---|
Note: See
TracBrowser for help on using the repository browser.