From ee9418159a621b982cf57b6b410a02ef04e09711 Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Fri, 6 Aug 2010 22:37:39 +0300 Subject: Add access restrictions to account and dashboard views --- grumpy/webapp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grumpy/webapp.py b/grumpy/webapp.py index b430301..7ce1f56 100644 --- a/grumpy/webapp.py +++ b/grumpy/webapp.py @@ -28,6 +28,7 @@ def before_request(): g.user = User.query.filter_by(openid=session['openid']).first() @app.route('/') +@requires_auth def dashboard(): if g.user is None: return redirect(url_for('index')) @@ -45,6 +46,7 @@ def index(): return render_template('index.html', cats=cats) @app.route('/account/') +@requires_auth def account(): return render_template('account.html') -- cgit v1.2.3-65-gdbad