Commit 5c423b93 authored by Daniel STAN's avatar Daniel STAN

factures: pour nounous only en prod

Parce que ça bug toujours pour les gens normaux. À patcher dans lc_ldap
parent 30400ce4
......@@ -292,7 +292,9 @@ INTRANET_APPS = (
'name': 'factures',
'category': 'Administration',
'label': 'Mes factures',
'test': lambda u: u.groups.filter(name='crans_paiement_ok') or conn_pool.get_user(u).factures() != [],
'test': lambda u: (u.groups.filter(name='crans_paiement_ok') or
conn_pool.get_user(u).factures() != [])
if not DEBUG else u.groups.filter(name='crans_nounou'),
},
{
'name': 'validation',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment