Projet

Général

Profil

« Précédent | Suivant » 

Révision dc027d89

Ajouté par Frédéric Péters il y a environ 9 ans

  • ID dc027d89c15f3118b0e1bcf290955622a2e89b40
  • Parent c9a827b5

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

Voir les différences:

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

Formats disponibles : Unified diff