aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authorisation
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-03-14 19:24:21 +0300
committerMunyoki Kilyungi2024-03-21 10:03:43 +0300
commit8d4ab2236b23983d58f489871d0dcd6df030e3d6 (patch)
treec32825c204cd4b998f259f6b73791e8abdc70dbd /gn_auth/auth/authorisation
parent72e46bb93d48fae787f0e23b101cebfd4ab51d13 (diff)
downloadgn-auth-8d4ab2236b23983d58f489871d0dcd6df030e3d6.tar.gz
Delete dead comment.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn_auth/auth/authorisation')
-rw-r--r--gn_auth/auth/authorisation/checks.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/checks.py b/gn_auth/auth/authorisation/checks.py
index ad71110..bf5e05a 100644
--- a/gn_auth/auth/authorisation/checks.py
+++ b/gn_auth/auth/authorisation/checks.py
@@ -38,7 +38,6 @@ def authorised_p(
def __build_authoriser__(func: Callable):
@wraps(func)
def __authoriser__(*args, **kwargs):
- # the_user = user or (hasattr(g, "user") and g.user)
with require_oauth.acquire(oauth2_scope) as the_token:
the_user = the_token.user
if the_user: