Merge pull request #5034 from mailcow/fix/skip-sogo

[Web] Skip update_sogo_static_view if sogo is disabled
This commit is contained in:
Patrick Schult 2023-01-31 11:03:50 +01:00 committed by GitHub
commit d684e0efc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5264,7 +5264,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
}
break;
}
if ($_action != 'get' && in_array($_type, array('domain', 'alias', 'alias_domain', 'mailbox', 'resource'))) {
if ($_action != 'get' && in_array($_type, array('domain', 'alias', 'alias_domain', 'mailbox', 'resource')) && getenv('SKIP_SOGO') != "y") {
update_sogo_static_view();
}
}