Projet

Général

Profil

0009-backoffice-make-users-and-settings-accessible-when-t.patch

Frédéric Péters, 22 avril 2015 12:31

Télécharger (819 octets)

Voir les différences:

Subject: [PATCH 09/11] backoffice: make users and settings accessible when
 there are no users (#6726)

 wcs/qommon/admin/menu.py | 2 ++
 1 file changed, 2 insertions(+)
wcs/qommon/admin/menu.py
182 182

  
183 183
def is_accessible(key):
184 184
    if not get_request().user:
185
        if get_publisher().user_class.count() == 0:
186
            return key in ('settings', 'users')
185 187
        return False
186 188

  
187 189
    user_roles = set(get_request().user.roles or [])
188
-