source: WAeUP_SRP/trunk/skins/waeup_default/isStaff.py @ 5142

Last change on this file since 5142 was 1972, checked in by Henrik Bettermann, 18 years ago

was not yet changed in the file system

File size: 386 bytes
RevLine 
[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
12mtool = context.portal_membership
[1972]13if mtool.isAnonymousUser():
14    return False
[885]15member = mtool.getAuthenticatedMember()
[1957]16member_id = str(member)
[1959]17o = ord(member_id[1])
18return not (o >= 48 and o <= 57)
[1972]19
Note: See TracBrowser for help on using the repository browser.