Ignore:
Timestamp:
1 Aug 2023, 06:40:01 (17 months ago)
Author:
Henrik Bettermann
Message:

Allow user 'admin' to access the portal in maintenance mode.

File:
1 edited

Legend:

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

    r15302 r17528  
    271271        try:
    272272            blocker = grok.getSite()['configuration'].maintmode_enabled_by
    273             if blocker and blocker != self.name:
     273            if blocker and blocker != self.name and self.name != 'admin':
    274274                return False
    275275        except (TypeError, KeyError):  # in unit tests
Note: See TracChangeset for help on using the changeset viewer.