Skip to content

Commit

Permalink
use method as is
Browse files Browse the repository at this point in the history
  • Loading branch information
alphatownsman authored Nov 2, 2023
1 parent 44748ad commit a785ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def authenticate(self, request, token) -> bool:
_logger.debug("API auth: no access token or user not authenticated")
return False
request_scopes = []
request_method = request.method.upper()
request_method = request.method
if request_method in PERMITTED_READ_METHODS:
request_scopes = ["read"]
elif request_method in PERMITTED_WRITE_METHODS:
Expand Down

0 comments on commit a785ac7

Please sign in to comment.