🩹(backend) fix duplication due to a bad rebase

While rebasing, I made few mistake with a settings wrongly renamed.
Oopsie fix this huge mistake.

Plus, a line was duplicated in Event authentication.
This commit is contained in:
lebaudantoine
2024-11-27 14:03:22 +01:00
committed by aleb_the_flash
parent 6b03ebb393
commit 10705ca3ac
2 changed files with 1 additions and 3 deletions

View File

@@ -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

View File

@@ -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