Skip to content

Commit

Permalink
Add auth for rescoring route + remove special handling
Browse files Browse the repository at this point in the history
  • Loading branch information
8R0WNI3 committed Jun 7, 2024
1 parent a098726 commit 91bc248
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions middleware/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,11 +393,6 @@ def process_resource(self, req: falcon.Request, resp: falcon.Response, resource,

auth = getattr(resource, 'auth', self.default_auth)

# check for req method specific auth type
method_function = getattr(resource, f'on_{req.method.lower()}', None)
if method_function:
auth = getattr(method_function, 'auth', auth)

# auto-generated documentation routes, they are missing the "no-auth" decorator
if isinstance(
resource,
Expand Down
1 change: 0 additions & 1 deletion rescore.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,6 @@ def create_backlog_items_for_rescored_artefacts(
)


@middleware.auth.noauth
class Rescore:
required_features = (features.FeatureDeliveryDB,)

Expand Down

0 comments on commit 91bc248

Please sign in to comment.