Fix authentication bug on sell page.

This commit is contained in:
crudo 2017-03-22 17:03:14 +01:00
parent e7874a10ee
commit 54e814e801

1
web.py
View File

@ -99,6 +99,7 @@ def get_event(session):
@app.route('/sell', methods=['GET']) @app.route('/sell', methods=['GET'])
@login_required
def sell_page(): def sell_page():
with db.get_session() as session: with db.get_session() as session:
products = get_products(session) products = get_products(session)