Skip to content

Commit 969071d

Browse files
Remove redundant authorization check code
1 parent 0ab67ed commit 969071d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

nmostesting/mocks/Registry.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -649,16 +649,6 @@ def post_subscription(version):
649649
@check_enabled_and_authorization
650650
def delete_subscription(version, subscription_id):
651651
registry = REGISTRIES[flask.current_app.config["REGISTRY_INSTANCE"]]
652-
if not registry.enabled:
653-
abort(503)
654-
authorized, error_message = registry.check_authorization(PRIMARY_AUTH,
655-
request.path,
656-
scope="x-nmos-query",
657-
write=True)
658-
659-
if authorized is not True:
660-
abort(authorized, description=error_message)
661-
662652
registry.requested_query_api_version = version
663653

664654
try:

0 commit comments

Comments
 (0)