From d6753c3830c453e126eb4547fc60786eaaa59142 Mon Sep 17 00:00:00 2001 From: Jaroslaw Wencel Date: Wed, 28 Sep 2022 23:54:10 +0200 Subject: [PATCH] option to disable Nextcloud items in management console --- management/daemon.py | 2 ++ management/templates/index.html | 4 ++++ setup/management.sh | 2 ++ 3 files changed, 8 insertions(+) diff --git a/management/daemon.py b/management/daemon.py index 98c6689c..793b31b6 100755 --- a/management/daemon.py +++ b/management/daemon.py @@ -133,6 +133,8 @@ def index(): backup_s3_hosts=backup_s3_hosts, csr_country_codes=csr_country_codes, + + nextcloud_enable=env['NEXTCLOUD_ENABLE'] ) # Create a session key by checking the username/password in the Authorization header. diff --git a/management/templates/index.html b/management/templates/index.html index f9c87f2c..dc52210a 100644 --- a/management/templates/index.html +++ b/management/templates/index.html @@ -139,7 +139,9 @@
  • Two-Factor Authentication
  • + {% if nextcloud_enable==1 %}
  • Contacts/Calendar
  • + {% endif %}
  • Web