Browse Source

Everyone can forget something mandatory :/

Let's fix it
master
tr4ck3ur des JM2L 9 years ago
parent
commit
a69e37544c
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      jm2l/views.py

+ 5
- 0
jm2l/views.py View 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}


Loading…
Cancel
Save