One edition: the last enterprise gates come out of shared code (SPEC 2.3)

Every one of the 14 was `#[cfg(not(feature = "enterprise"))]` on the arm the
fork always compiles: the Enterprise arms went with the import, and nothing
turns the feature on. Removing the attribute leaves the same code, now
unconditional, in 11 files.

Two of them looked like behavior worth checking before touching: the
`validate_tenant_quota` stub that always passes, and the refusal to cancel a
pending DestroyAccount task. The stub is vestigial — the rebuilt
multi-tenancy enforces quotas in `crates/features/src/tenancy/quota.rs` for
those objects and more — and the refusal is undelete's open question, which
this change leaves exactly as it was.

The binary builds with no new warnings, and `system_tests` and `jmap_tests`,
which cover the touched registry, task-manager and auth paths, both pass.
The feature definitions stay in the manifests, inert: taking them out would
widen every sync's diff for nothing.
This commit is contained in:
2026-09-19 17:44:20 -07:00
parent dac1808bbd
commit 29d9263071
12 changed files with 7 additions and 15 deletions
@@ -554,7 +554,6 @@ async fn build_template(
// inbuxa: BT-11, BT-18: the operator's template, read now, else the built-in
#[cfg(not(feature = "enterprise"))]
let custom = inbuxa_features::branding::templates::stored(
server.registry(),
inbuxa_features::branding::templates::Which::Alarm,
@@ -562,7 +561,6 @@ async fn build_template(
.await
.ok()
.flatten();
#[cfg(not(feature = "enterprise"))]
let template = custom.as_ref().unwrap_or(&server.core.groupware.alarms_template);
let formatter = TextFormatter::new(account_info.locale().as_str())?;
let locale = formatter.locale;
-2
View File
@@ -324,7 +324,6 @@ pub async fn build_itip_template(
logo_cid: &str,
) -> trc::Result<Details> {
// inbuxa: BT-11, BT-18: the operator's template, read now, else the built-in
#[cfg(not(feature = "enterprise"))]
let custom = inbuxa_features::branding::templates::stored(
server.registry(),
inbuxa_features::branding::templates::Which::Invite,
@@ -332,7 +331,6 @@ pub async fn build_itip_template(
.await
.ok()
.flatten();
#[cfg(not(feature = "enterprise"))]
let template = custom.as_ref().unwrap_or(&server.core.groupware.itip_template);
let formatter = TextFormatter::new(account_info.locale().as_str())?;
let locale = formatter.locale;
@@ -581,7 +581,6 @@ async fn build_contact_document(
}
#[cfg(not(feature = "enterprise"))]
// inbuxa: MON-16: a trace's search document, when trace search is on:
// its event types, queue ids, and addresses, their domains, hosts, IPs,
// message ids and account names as keywords