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

@@ -357,6 +357,8 @@ impl RegistryGet for Server {
| ObjectType::AccountPassword
| ObjectType::AppPassword => account_get(get).await.map(|get| get.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");
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())
}
}
}
}