Ignore:
Timestamp:
30 Sep 2012, 20:30:43 (12 years ago)
Author:
Henrik Bettermann
Message:

Add exporter for accesscodes and accesscode batches. Only users with waeup.manageACBatches permission are allowed to use the accecodes exporter.

File:
1 edited

Legend:

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

    r9217 r9261  
    3333    )
    3434from zope.event import notify
     35from zope.security import checkPermission
    3536from zope.securitypolicy.interfaces import IPrincipalRoleManager
    3637from zope.session.interfaces import ISession
     
    13861387        title_name_tuples = [
    13871388            (util.title, name) for name, util in utils]
     1389        # The exporter for access codes requires a special permission.
     1390        if not checkPermission('waeup.manageACBatches', self.context):
     1391            title_name_tuples.remove((u'AccessCodes', u'accesscodes'))
    13881392        return sorted(title_name_tuples)
    13891393
Note: See TracChangeset for help on using the changeset viewer.