Project

General

Profile

« Previous | Next » 

Revision dc027d89

Added by Frédéric Péters over 9 years ago

  • ID dc027d89c15f3118b0e1bcf290955622a2e89b40
  • Parent c9a827b5

misc: only display strongbox page if it has been enabled in settings (#7129)

View differences:

extra/auquotidien.py
35 35
    target = target.strip('/')
36 36
    if target == 'management':
37 37
        target = 'forms'
38
    if target in ('strongbox', ) and not get_publisher().has_site_option(target):
39
        return False
38
    if target == 'strongbox':
39
        if not get_publisher().has_site_option(target):
40
            # strongbox disabled in site-options.cfg
41
            return False
42
        if not get_cfg('misc', {}).get('aq-strongbox'):
43
            # strongbox disabled in settings panel
44
            return False
40 45
    admin_role = get_cfg('aq-permissions', {}).get(target, None)
41 46
    if not admin_role:
42 47
        return False

Also available in: Unified diff