Sfoglia il codice sorgente

Everyone can forget something mandatory :/

Let's fix it
master
tr4ck3ur des JM2L 9 anni fa
parent
commit
a69e37544c
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. +5
    -0
      jm2l/views.py

+ 5
- 0
jm2l/views.py Vedi File

@@ -745,6 +745,11 @@ def vote_logo(request):

@view_config(route_name='list_users', renderer="jm2l:templates/Participant/list.mako")
def list_users(request):
if request.user is None:
# Don't answer to users that aren't logged
raise HTTPForbidden(u'Vous devez vous identifier pour obtenir une réponse.')
if not request.user.Staff:
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.')
Data = DBSession.query(User, Sejour).outerjoin(Sejour).all()
Repas = DBSession.query(Sejour.repas).all()
DicRepas = {"Ven":0, "Midi":0, "Soir":0}


Caricamento…
Annulla
Salva