diff options
author | Priit Laes <plaes@plaes.org> | 2010-08-06 22:37:39 +0300 |
---|---|---|
committer | Priit Laes <plaes@plaes.org> | 2010-08-06 22:37:39 +0300 |
commit | ee9418159a621b982cf57b6b410a02ef04e09711 (patch) | |
tree | e11be55e00980a44c0bd9c9b1876e8db611931c1 | |
parent | Added API key generation feature (diff) | |
download | gsoc2010-grumpy-ee9418159a621b982cf57b6b410a02ef04e09711.tar.gz gsoc2010-grumpy-ee9418159a621b982cf57b6b410a02ef04e09711.tar.bz2 gsoc2010-grumpy-ee9418159a621b982cf57b6b410a02ef04e09711.zip |
Add access restrictions to account and dashboard views
-rw-r--r-- | grumpy/webapp.py | 2 |
1 files changed, 2 insertions, 0 deletions
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') |