Ignore:
Timestamp:
29 May 2013, 06:28:41 (12 years ago)
Author:
Henrik Bettermann
Message:

We don't need the local BursaryOfficer? role but the global.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
2 edited

Legend:

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

    r10243 r10246  
    8888    grok.permissions('waeup.manageAcademics','waeup.showStudents')
    8989
    90 class BursaryOfficer(grok.Role):
    91     grok.name('waeup.local.BursaryOfficer')
    92     grok.title(u'Bursary Officer')
    93     grok.permissions('waeup.showStudents', 'waeup.viewAcademics')
    94 
    9590class ClearanceOfficer(grok.Role):
    9691    """The clearance officer role is meant for the
     
    227222    grok.permissions('waeup.manageDataCenter',
    228223                     'waeup.exportData')
     224
     225class BursaryOfficer(grok.Role):
     226    grok.name('waeup.BursaryOfficer')
     227    grok.title(u'Bursary Officer')
     228    grok.permissions('waeup.showStudents', 'waeup.viewAcademics')
    229229
    230230class UsersManager(grok.Role):
  • main/waeup.kofa/trunk/src/waeup/kofa/permissions.txt

    r10243 r10246  
    3939    >>> from waeup.kofa.permissions import get_waeup_roles
    4040    >>> len(list(get_waeup_roles()))
    41     21
     41    22
    4242
    4343    >>> len(list(get_waeup_roles(also_local=True)))
     
    6060     u'waeup.ApplicationsManager',
    6161     u'waeup.ApplicationsOfficer',
     62     u'waeup.BursaryOfficer',
    6263     u'waeup.CCOfficer',
    6364     u'waeup.DataCenterManager',
Note: See TracChangeset for help on using the changeset viewer.