From afb4dc2e0a8158d681bb828ed3e2eef1779739e7 Mon Sep 17 00:00:00 2001 From: Stefano Date: Thu, 14 Sep 2017 13:26:20 +0200 Subject: [PATCH] Don't require login to view the credits page and require it for the fish --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 4bea68c..583eadc 100644 --- a/server.py +++ b/server.py @@ -731,8 +731,6 @@ def page_query(): @app.route('/smecds') def page_smecds(): """Pagina che visualizza i credits del sito""" - if 'username' not in session: - return abort(403) return render_template("smecds.htm", pagetype="main", user=session.get("username")) @@ -740,6 +738,8 @@ def page_smecds(): def page_pheesh(): """Acquario del sito. I pesci sono generati dinamicamente basandosi sui dati presenti nel database.""" + if 'username' not in session: + return abort(403) enti = Ente.query.all() servizi = Servizio.query.all() impiegati = Impiegato.query.all()