From 97e06d87f4b8404c8b41232dac82cb358e40191c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 14 2018 16:48:47 +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 157bbca..3700183 100644 --- a/pagure/api/project.py +++ b/pagure/api/project.py @@ -222,7 +222,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)