From 8a36052e09b7bcd2722da2c3b8caefb191fc3a80 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 05 2015 09:45:41 +0000 Subject: Fix the index endpoint by correctly checking if the user is authenticated or not --- diff --git a/progit/ui/app.py b/progit/ui/app.py index b85c879..1908033 100644 --- a/progit/ui/app.py +++ b/progit/ui/app.py @@ -24,7 +24,8 @@ import progit.lib import progit.forms from progit import (APP, SESSION, LOG, __get_file_in_tree, cla_required, generate_gitolite_acls, generate_gitolite_key, - generate_authorized_key_file, markdown_filter) + generate_authorized_key_file, markdown_filter, + authenticated) # Application @@ -67,7 +68,7 @@ def index(): user_repos_length = None user_forks_length = None - if flask.g.fas_user: + if authenticated(): username = flask.g.fas_user.username repopage = flask.request.args.get('repopage', 1)