Ignore:
Timestamp:
17 Nov 2015, 08:30:02 (9 years ago)
Author:
Henrik Bettermann
Message:

Do not disable maintenance mode for user admin.

File:
1 edited

Legend:

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

    r13434 r13468  
    16731673
    16741674        # Disable maintenance mode if set.
    1675         if grok.getSite()['configuration'].maintmode_enabled_by:
     1675        if grok.getSite()['configuration'].maintmode_enabled_by and \
     1676            not self.request.principal.id == 'admin':
    16761677            grok.getSite()['configuration'].maintmode_enabled_by = None
    16771678            self.flash(_('Maintenance mode disabled.'))
Note: See TracChangeset for help on using the changeset viewer.