Also add 401 to permission responses.

master
Tom Hacohen 4 years ago
parent 959dc9b576
commit 1a09393dcb

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

Loading…
Cancel
Save