Ignore:
Timestamp:
15 Mar 2015, 06:18:19 (10 years ago)
Author:
Henrik Bettermann
Message:

Configure permissions to view and manage payments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/permissions.py

    r12347 r12764  
    7171    grok.name('waeup.managePortalConfiguration')
    7272
     73class ViewPayments(grok.Permission):
     74    grok.name('waeup.viewPayments')
     75
     76class ManagePayments(grok.Permission):
     77    grok.name('waeup.managePayments')
    7378
    7479# Local Roles
     
    125130    grok.title(u'Workflow Manager')
    126131    grok.permissions('waeup.triggerTransition')
     132
     133class PaymentsOfficer(grok.Role):
     134    grok.name('waeup.PaymentsOfficer')
     135    grok.title(u'Payments Officer (view only)')
     136    grok.permissions('waeup.viewPayments')
     137
     138class PaymentsManager(grok.Role):
     139    grok.name('waeup.PaymentsManager')
     140    grok.title(u'Payments Manager')
     141    grok.permissions('waeup.viewPayments',
     142                     'waeup.managePayments')
    127143
    128144class PortalManager(grok.Role):
     
    145161                     'waeup.triggerTransition',
    146162                     'waeup.viewCustomersTab',
    147                      'waeup.editContracts'
     163                     'waeup.editContracts',
     164                     'managePayments'
    148165                     )
    149166
     
    172189                     'waeup.triggerTransition',
    173190                     'waeup.viewCustomersTab',
    174                      'waeup.editContracts'
     191                     'waeup.editContracts',
     192                     'managePayments'
    175193                     )
    176194
Note: See TracChangeset for help on using the changeset viewer.