"list staffers pdf"
This commit is contained in:
parent
1cf5300441
commit
3dc909efe0
@ -1057,8 +1057,8 @@ def list_users():
|
|||||||
@check_session
|
@check_session
|
||||||
def print_users():
|
def print_users():
|
||||||
""" Print user list """
|
""" Print user list """
|
||||||
message = ''
|
message = check_user_info()
|
||||||
try:
|
#~ try:
|
||||||
if session['is_admin']:
|
if session['is_admin']:
|
||||||
page = str(request.url_rule)
|
page = str(request.url_rule)
|
||||||
menu = get_menu(page)
|
menu = get_menu(page)
|
||||||
@ -1137,12 +1137,12 @@ def print_users():
|
|||||||
response.headers['Content-Disposition'] = "attachment; filename=feuille_staff_thsf.pdf"
|
response.headers['Content-Disposition'] = "attachment; filename=feuille_staff_thsf.pdf"
|
||||||
response.mimetype = 'application/pdf'
|
response.mimetype = 'application/pdf'
|
||||||
return response
|
return response
|
||||||
# User is not admin
|
#~ # User is not admin
|
||||||
return render_template('login_or_register.html', message="Utilisateur ou mot de passe invalide")
|
#~ return render_template('login_or_register.html', message="Utilisateur ou mot de passe invalide")
|
||||||
except Exception as e:
|
#~ except Exception as e:
|
||||||
raise e
|
#~ raise e
|
||||||
# User is not logged in
|
#~ # User is not logged in
|
||||||
return render_template('login_or_register.html', message="%s" % e)
|
#~ return render_template('login_or_register.html', message="%s" % e)
|
||||||
|
|
||||||
|
|
||||||
@app.route("/account/<ID>", methods=['GET', 'POST'])
|
@app.route("/account/<ID>", methods=['GET', 'POST'])
|
||||||
|
Loading…
Reference in New Issue
Block a user