source: WAeUP_SRP/trunk/skins/waeup_default/isClearanceOfficer.py @ 911

Last change on this file since 911 was 885, checked in by joachim, 18 years ago

cleaned up several things:

  1. the definitions for isManager, isStaff, and isClearanceOfficer

are now independant from eachother only based on roles or groups.
The Manager-Role is the superuser-role,
the is-Scripts document what is what.

since isStaff returns false if the member only has Manager-role,
in .cpsskins_theme it must now be:

if context.isStaff() or context.isManager():

return 'WAeUP_Backoffice'

todo: finish the merge of co_searchStudents and searchStudents

  • Property svn:keywords set to Id
File size: 331 bytes
Line 
1## Script (Python) "isClearanceOfficer"
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: isClearanceOfficer.py 885 2006-11-17 16:06:47Z joachim $
11
12mtool = context.portal_membership
13roles = mtool.getAuthenticatedMember().getRolesInContext(context)
14return "ClearanceOfficer" in roles
15
Note: See TracBrowser for help on using the repository browser.