1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-03 00:07:05 +00:00

option to disable Nextcloud items in management console

This commit is contained in:
Jaroslaw Wencel 2022-09-28 23:54:10 +02:00
parent 55da363b25
commit d6753c3830
3 changed files with 8 additions and 0 deletions

View File

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

View File

@ -139,7 +139,9 @@
<li><a href="#mfa" onclick="return show_panel(this);">Two-Factor Authentication</a></li>
</ul>
</li>
{% if nextcloud_enable==1 %}
<li><a href="#sync_guide" onclick="return show_panel(this);" class="if-logged-in">Contacts/Calendar</a></li>
{% endif %}
<li><a href="#web" onclick="return show_panel(this);" class="if-logged-in-admin">Web</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
@ -190,9 +192,11 @@
{% include "aliases.html" %}
</div>
{% if nextcloud_enable==1 %}
<div id="panel_sync_guide" class="admin_panel">
{% include "sync-guide.html" %}
</div>
{% endif %}
<div id="panel_web" class="admin_panel">
{% include "web.html" %}

View File

@ -98,6 +98,8 @@ export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_TYPE=en_US.UTF-8
source /etc/mailinabox.conf
source $venv/bin/activate
exec python $(pwd)/management/daemon.py
EOF