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