Ignore:
Timestamp:
21 Nov 2006, 21:05:33 (18 years ago)
Author:
Henrik Bettermann
Message:

local roles SectionReader? and SectionManager? can only be assigned by admin
unused pins only be shown to admin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_custom/getCPSCandidateLocalRoles.py

    r867 r919  
    1717from Products.CMFCore.utils import getToolByName
    1818mtool = getToolByName(context, 'portal_membership')
     19member = mtool.getAuthenticatedMember()
     20
     21
    1922#return mtool.getCPSCandidateLocalRoles(context)
    20 return ['SectionReader','SectionManager','ClearanceOfficer']
     23
     24
     25if member.id == 'admin'
     26  return ['SectionReader','SectionManager','ClearanceOfficer', 'SectionOfficer']
     27return ['ClearanceOfficer', 'SectionOfficer']
Note: See TracChangeset for help on using the changeset viewer.