"list staffers pdf"
This commit is contained in:
parent
c4039eed27
commit
6b933211b8
@ -1062,9 +1062,9 @@ def print_users():
|
|||||||
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)
|
||||||
staffs = Tetawebapp_staffs.query(Tetawebapp_staffs.user_id).distinct()
|
#~ staffs = Tetawebapp_staffs.query(Tetawebapp_staffs.user_id).distinct()
|
||||||
staffers = Tetawebapp_users.query.filter(Tetawebapp_users.is_admin==0, Tetawebapp_users.link_id==None).order_by(Tetawebapp_users.name).all()
|
staffers = Tetawebapp_users.query.filter(Tetawebapp_users.is_admin==0, Tetawebapp_users.link_id==None).order_by(Tetawebapp_users.name).all()
|
||||||
sstaffers = [staffer for staffer in staffers if staffer.id in staffs]
|
#~ sstaffers = [staffer for staffer in staffers if staffer.id in staffs]
|
||||||
return sstaffers
|
return sstaffers
|
||||||
# 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")
|
||||||
|
Loading…
Reference in New Issue
Block a user