From 212ff11b6ddf38d2f837bbf99530408d14c42456 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 15 Jul 2021 09:58:07 +0200 Subject: [PATCH] api: fix Capabilities check for s3 backup Signed-off-by: Jens Langhammer --- authentik/api/v2/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/api/v2/config.py b/authentik/api/v2/config.py index 0641d41f7..dd9005dc9 100644 --- a/authentik/api/v2/config.py +++ b/authentik/api/v2/config.py @@ -49,7 +49,7 @@ class ConfigView(APIView): caps.append(Capabilities.CAN_GEO_IP) if SERVICE_HOST_ENV_NAME in environ: # Running in k8s, only s3 backup is supported - if CONFIG.y("postgresql.s3_backup"): + if CONFIG.y_bool("postgresql.s3_backup"): caps.append(Capabilities.CAN_BACKUP) else: # Running in compose, backup is always supported