Changeset 15366 for main/waeup.uniben


Ignore:
Timestamp:
24 Mar 2019, 09:29:18 (6 years ago)
Author:
Henrik Bettermann
Message:

Add permission and role for library clearance officers.

File:
1 edited

Legend:

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

    r11736 r15366  
    2222    grok.name('waeup.uploadPassportPictures')
    2323
     24class ClearLibrary(grok.Permission):
     25    grok.name('waeup.clearForLibrary')
     26
    2427class PassportPictureManager(grok.Role):
    2528    grok.name('waeup.PassportPictureManager')
    2629    grok.title(u'Passport Picture Manager')
    2730    grok.permissions('waeup.uploadPassportPictures')
     31
     32class LibraryClearanceOfficer(grok.Role):
     33    """Library Clearance Officers can enable library id card slips.
     34    """
     35    grok.name('waeup.LibraryClearanceOfficer')
     36    grok.title(u'Library Clearance Officer')
     37    grok.permissions('waeup.showStudents',
     38                     'waeup.viewAcademics',
     39                     'waeup.clearForLibrary')
    2840
    2941class CRPUOfficer(CCOfficer):
Note: See TracChangeset for help on using the changeset viewer.