From 8d8fb0fc797f616069ec5cde27b4981657abf19f Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 14 2018 16:45:32 +0000 Subject: Call the API specific function checking if the user is authenticated Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/api/project.py b/pagure/api/project.py index c1fcc1e..3f15ee7 100644 --- a/pagure/api/project.py +++ b/pagure/api/project.py @@ -226,7 +226,7 @@ def api_project_git_urls(repo, username=None, namespace=None): git_urls = {} git_url_ssh = pagure_config.get('GIT_URL_SSH') - if pagure.utils.authenticated() and git_url_ssh: + if pagure.utils.api_authenticated() and git_url_ssh: try: git_url_ssh = git_url_ssh.format( username=flask.g.fas_user.username)