Changeset 17253 for main


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

Add AccommodationViewer role.

Location:
main/waeup.kofa/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r17177 r17253  
    441.7.2.dev0 (unreleased)
    55=======================
     6
     7* Add `AccommodationViewer` role.
    68
    79* Allow students to book accommodation also if they are in previous
  • main/waeup.kofa/trunk/docs/source/userdocs/security.rst

    r16170 r17253  
    238238   :noindex:
    239239
     240.. autoclass:: waeup.kofa.hostels.permissions.AccommodationViewer()
     241   :noindex:
     242
    240243Global Applicants Section Roles
    241244-------------------------------
  • 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.