1
0
mirror of https://github.com/etesync/server synced 2024-11-22 16:58:08 +00:00

Also add 401 to permission responses.

This commit is contained in:
Tom Hacohen 2020-12-28 10:29:47 +02:00
parent 959dc9b576
commit 1a09393dcb

View File

@ -44,4 +44,4 @@ def is_collection_admin(collection, user):
response_model_dict = {"model": HttpErrorOut}
permission_responses = {403: response_model_dict}
permission_responses = {401: response_model_dict, 403: response_model_dict}