From 000e688a0918c6978607cb0c7115459316ce0e75 Mon Sep 17 00:00:00 2001 From: Lorenzo Balugani Date: Fri, 28 May 2021 12:47:09 +0200 Subject: [PATCH] I am a big dumb-dumb --- nest_backend/routes/repository/tweets/repository_tweets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nest_backend/routes/repository/tweets/repository_tweets.py b/nest_backend/routes/repository/tweets/repository_tweets.py index b882e41..ce8d427 100644 --- a/nest_backend/routes/repository/tweets/repository_tweets.py +++ b/nest_backend/routes/repository/tweets/repository_tweets.py @@ -48,7 +48,7 @@ def page_repository_tweets(rid): return json_error("Could not find repository", REPOSITORY_NOT_FOUND), 404 user = find_user(get_jwt_identity()) - if user.email != repository.owner_id and user.email not in [a.email for a in Repository.authorizations]: + if user.email != repository.owner_id and user.email not in [a.email for a in repository.authorizations]: return json_error("You are not authorized.", USER_NOT_AUTHORIZED), 403 if request.method == "GET":