Fix OSS builds

This commit is contained in:
Maurus Decimus
2026-04-21 14:05:13 +02:00
parent 0fac0754e5
commit 64f4078bf4
4 changed files with 11 additions and 1 deletions

View File

@@ -12,6 +12,8 @@ This version includes **multiple breaking changes**. If you are upgrading from v
## Changed ## Changed
## Fixed ## Fixed
- OSS builds.
## [0.16.0] - 2026-04-20 ## [0.16.0] - 2026-04-20

View File

@@ -357,6 +357,8 @@ impl RegistryGet for Server {
| ObjectType::AccountPassword | ObjectType::AccountPassword
| ObjectType::AppPassword => account_get(get).await.map(|get| get.into_response()), | ObjectType::AppPassword => account_get(get).await.map(|get| get.into_response()),
ObjectType::Action => Ok(get.not_found_any().into_response()), ObjectType::Action => Ok(get.not_found_any().into_response()),
#[cfg(not(feature = "enterprise"))]
_ => Ok(get.not_found_any().into_response()),
} }
} }
} }

View File

@@ -708,6 +708,13 @@ impl RegistrySet for Server {
set.fail_all_destroy("Telemetry objects cannot be deleted"); set.fail_all_destroy("Telemetry objects cannot be deleted");
Ok(set.into_response()) Ok(set.into_response())
} }
#[cfg(not(feature = "enterprise"))]
_ => {
set.fail_all_create("Enterprise objects cannot be created");
set.fail_all_update("Enterprise objects cannot be modified");
set.fail_all_destroy("Enterprise objects cannot be deleted");
Ok(set.into_response())
}
} }
} }
} }

View File

@@ -4,7 +4,6 @@
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
*/ */
#[cfg(feature = "enterprise")]
use std::time::Duration; use std::time::Duration;
use std::{ use std::{
collections::BinaryHeap, collections::BinaryHeap,