Ignore:
Timestamp:
8 Feb 2024, 09:39:23 (9 months ago)
Author:
Henrik Bettermann
Message:

Allow users Abraham and site to remove records by import.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/browser/pages.py

    r17647 r17696  
    1919from waeup.kofa.browser.pages import (
    2020    SessionConfigurationAddFormPage, SessionConfigurationManageFormPage,
    21     LoginPage, CertificatePage, CertificateManageFormPage)
     21    LoginPage, CertificatePage, CertificateManageFormPage,
     22    DatacenterImportStep2)
    2223from waeup.kofa.university.interfaces import ICertificate
    2324from kofacustom.unidel.interfaces import (
     
    3334    """
    3435    form_fields = grok.AutoFields(ICustomSessionConfiguration)
     36
     37class CustomDatacenterImportStep2(DatacenterImportStep2):
     38    """Manual import step 2: choose processor
     39    """
     40    @property
     41    def show_remove_button(self):
     42        return self.request.principal.id in (
     43            'admin', 'zope.manager', 'zope.mgr',
     44            'Abraham', 'jite')
    3545
    3646class CustomCertificatePage(CertificatePage):
Note: See TracChangeset for help on using the changeset viewer.