From 4b845ec8de48e65e6d98547ce65c4a823f2a01fe Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 22 2015 08:49:22 +0000 Subject: Add a docstring to check_api_acls --- diff --git a/pagure/api/__init__.py b/pagure/api/__init__.py index ee012b0..413b80c 100644 --- a/pagure/api/__init__.py +++ b/pagure/api/__init__.py @@ -34,6 +34,10 @@ API_ERROR_CODE = { def check_api_acls(acls): + ''' Checks if the user provided an API token with its request and if + this token allows the user to access the endpoint desired. + ''' + flask.g.token = None flask.g.user = None token = None