authentik-nix/components/authentik_media_upload.patch
WilliButz 4cdde46347
update: 2024.2.2 -> 2024.2.3
Adapted media upload patch.

Flake lock file updates:

• Updated input 'authentik-src':
    'github:goauthentik/authentik/4ec37c52395df6a3b431934cb27771ff814b024c' (2024-03-04)
  → 'github:goauthentik/authentik/6bb180f94ec124092c4f87ae5f5d892a70b32ff3' (2024-04-17)
2024-04-17 14:53:22 +02:00

11 lines
490 B
Diff

diff --git a/authentik/api/v3/config.py b/authentik/api/v3/config.py
--- a/authentik/api/v3/config.py
+++ b/authentik/api/v3/config.py
@@ -71,6 +71,7 @@ class ConfigView(APIView):
if (
CONFIG.get("storage.media.backend", "file") == "s3"
or Path(settings.STORAGES["default"]["OPTIONS"]["location"]).is_mount()
+ or CONFIG.get_bool("media.enable_upload")
or deb_test
):
caps.append(Capabilities.CAN_SAVE_MEDIA)