Ignore:
Timestamp:
29 Dec 2022, 09:15:31 (2 years ago)
Author:
Henrik Bettermann
Message:

Add AccommodationViewer role.

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

Legend:

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

    r15968 r17253  
    3939    >>> from waeup.kofa.permissions import get_waeup_roles
    4040    >>> len(list(get_waeup_roles()))
    41     29
     41    30
    4242
    4343    >>> len(list(get_waeup_roles(also_local=True)))
    44     54
     44    55
    4545
    4646
     
    5757     u'waeup.AcademicsOfficer',
    5858     u'waeup.AccommodationOfficer',
     59     u'waeup.AccommodationViewer',
    5960     u'waeup.Applicant',
    6061     u'waeup.ApplicationsManager',
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/permissions.py

    r15279 r17253  
    5959                     'waeup.viewAcademics',
    6060                     'waeup.exportAccommodationData')
     61
     62class AccommodationViewer(grok.Role):
     63    """Accommodation Viewers can view but not manage hostels. They can also export
     64    student accommodation data (filtered payment tickets and bed tickets).
     65    They can't access the Data Center but see student data export buttons
     66    in the Academic Section.
     67    """
     68    grok.name('waeup.AccommodationViewer')
     69    grok.title(u'Accommodation Viewer')
     70    grok.permissions('waeup.viewHostels',
     71                     'waeup.showStudents',
     72                     'waeup.viewAcademics',
     73                     'waeup.exportAccommodationData')
Note: See TracChangeset for help on using the changeset viewer.