Skip to content

Commit

Permalink
Set order deprecated_endpoint to not catch unauthorized requests
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 committed Feb 15, 2024
1 parent fc27b03 commit a752c33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mwdb/resources/blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ def get(self, identifier):
"""
return super().get(identifier)

@deprecated_endpoint(DeprecatedFeature.legacy_object_upload)
@requires_authorization
@requires_capabilities(Capabilities.adding_blobs)
@deprecated_endpoint(DeprecatedFeature.legacy_object_upload)
def put(self, identifier):
"""
---
Expand Down
2 changes: 1 addition & 1 deletion mwdb/resources/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@ def get(self, identifier):
"""
return super().get(identifier)

@deprecated_endpoint(DeprecatedFeature.legacy_object_upload)
@requires_authorization
@requires_capabilities(Capabilities.adding_configs)
@deprecated_endpoint(DeprecatedFeature.legacy_object_upload)
def put(self, identifier):
"""
---
Expand Down
2 changes: 1 addition & 1 deletion mwdb/resources/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ def get(self, identifier):
"""
return super().get(identifier)

@deprecated_endpoint(DeprecatedFeature.legacy_object_upload)
@requires_authorization
@requires_capabilities(Capabilities.adding_files)
@deprecated_endpoint(DeprecatedFeature.legacy_object_upload)
def post(self, identifier):
"""
---
Expand Down

0 comments on commit a752c33

Please sign in to comment.