aboutsummaryrefslogtreecommitdiff
path: root/grumpy
diff options
context:
space:
mode:
authorPriit Laes <plaes@plaes.org>2010-08-06 22:37:39 +0300
committerPriit Laes <plaes@plaes.org>2010-08-06 22:37:39 +0300
commitee9418159a621b982cf57b6b410a02ef04e09711 (patch)
treee11be55e00980a44c0bd9c9b1876e8db611931c1 /grumpy
parentAdded API key generation feature (diff)
downloadgsoc2010-grumpy-ee9418159a621b982cf57b6b410a02ef04e09711.tar.gz
gsoc2010-grumpy-ee9418159a621b982cf57b6b410a02ef04e09711.tar.bz2
gsoc2010-grumpy-ee9418159a621b982cf57b6b410a02ef04e09711.zip
Add access restrictions to account and dashboard views
Diffstat (limited to 'grumpy')
-rw-r--r--grumpy/webapp.py2
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')