source: WAeUP_SRP/base/skins/waeup_default/isStaff.py @ 3403

Last change on this file since 3403 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
12mtool = context.portal_membership
13if mtool.isAnonymousUser():
14    return False
15member = mtool.getAuthenticatedMember()
16member_id = str(member)
17o = ord(member_id[1])
18return not (o >= 48 and o <= 57)
19
Note: See TracBrowser for help on using the repository browser.