Changeset 919 for WAeUP_SRP/trunk


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

Location:
WAeUP_SRP/trunk/skins
Files:
2 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']
  • WAeUP_SRP/trunk/skins/waeup_pins/batch_view.pt

    r805 r919  
    1 <metal:html tal:define="info context/getBatchInfo">
     1<metal:html tal:define="info context/getBatchInfo;
     2                        mtool here/portal_membership;
     3                        member mtool/getAuthenticatedMember;
     4                        ">
    25
    36  <metal:body use-macro="here/main_template/macros/master">
     
    2326        <br />
    2427       
     28        <span tal:condition="python:member.id=='admin'">       
    2529        <h3>Unused</h3>
    2630        <table>
     
    3034          </tr>
    3135        </table>
    32        
     36        </span>
     37
    3338        <h3>Used</h3>
    3439        <table>
Note: See TracChangeset for help on using the changeset viewer.