Fix OSS builds
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user