mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-25 14:34:19 +00:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
4f0b9a77b6
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ def page_repository_tweets(rid):
|
||||||
return json_error("Could not find repository", REPOSITORY_NOT_FOUND), 404
|
return json_error("Could not find repository", REPOSITORY_NOT_FOUND), 404
|
||||||
user = find_user(get_jwt_identity())
|
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
|
return json_error("You are not authorized.", USER_NOT_AUTHORIZED), 403
|
||||||
|
|
||||||
if request.method == "GET":
|
if request.method == "GET":
|
||||||
|
|
Loading…
Reference in a new issue