Changeset 17528 for main/waeup.kofa


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

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

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

Legend:

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

    r17458 r17528  
    55=======================
    66
    7 * Don't led students selct blocked hostels on `AccommodationManageFormPage`.
     7* Allow user 'admin' to access the portal in maintenance mode.
     8
     9* Don't led students select blocked hostels on `AccommodationManageFormPage`.
    810
    911* Add `ReleaseExpiredAllocationsPage2` which allows to release unpaid beds
  • 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.