From 10705ca3acf56efc44dcc6e03c8aa6fe234739b9 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Wed, 27 Nov 2024 14:03:22 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9(backend)=20fix=20duplication=20due?= =?UTF-8?q?=20to=20a=20bad=20rebase?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While rebasing, I made few mistake with a settings wrongly renamed. Oopsie fix this huge mistake. Plus, a line was duplicated in Event authentication. --- src/backend/core/recording/event/authentication.py | 2 -- src/backend/meet/settings.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backend/core/recording/event/authentication.py b/src/backend/core/recording/event/authentication.py index 768c4f42..6c38d596 100644 --- a/src/backend/core/recording/event/authentication.py +++ b/src/backend/core/recording/event/authentication.py @@ -47,8 +47,6 @@ class StorageEventAuthentication(BaseAuthentication): def authenticate(self, request): """Validate the Bearer token from the Authorization header.""" - if not settings.RECORDING_ENABLE_STORAGE_EVENT_AUTH: - return MachineUser(), None if not settings.RECORDING_ENABLE_STORAGE_EVENT_AUTH: return MachineUser(), None diff --git a/src/backend/meet/settings.py b/src/backend/meet/settings.py index 8ebe3624..3f4b586a 100755 --- a/src/backend/meet/settings.py +++ b/src/backend/meet/settings.py @@ -446,7 +446,7 @@ class Base(Configuration): False, environ_name="RECORDING_STORAGE_EVENT_ENABLE", environ_prefix=None ) RECORDING_STORAGE_EVENT_TOKEN = values.Value( - None, environ_name="RECORDING_STORAGE_HOOK_TOKEN", environ_prefix=None + None, environ_name="RECORDING_STORAGE_EVENT_TOKEN", environ_prefix=None ) # pylint: disable=invalid-name