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