Commit 4cd63648 authored by Gabriel Boudy's avatar Gabriel Boudy
Browse files

les supreme sont en haut de liste_droit

parent 26ed544e
......@@ -2182,7 +2182,9 @@ def liste_droits(request, sock, kwargs):
droits = set(profil["droits"].split(', ') + profil["droitsurdroits"].split(', ') + profil["surdroits"].split(', '))
supreme, nodroitsurd = 0.5*profil["supreme"], 0.5*(profil["droitsurdroits"]=="") + 0.25*(profil["surdroits"]=="")
if 'all' in droits:
if supreme:
return nodroitsurd
elif 'all' in droits:
return 1.5 - supreme
elif droits & set(['comptes', 'search', 'adherents_weak', 'full_search']):
return 2 + nodroitsurd
......
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