Owner-authorized recovery of accumulated source changes.
Includes accepted work and in-progress changes; NOT a release or acceptance.
Parent baseline 1b6db09bd1. Runtime data, build caches and local credentials excluded.
18 lines
859 B
Rust
18 lines
859 B
Rust
//! Отзыв Resource (Story 3.8): отдельная security-команда, не lifecycle-переход.
|
|
//!
|
|
//! Слой Admin не решает, что значит отзыв: он передаёт actor/корреляцию из
|
|
//! серверной сессии и `RequestContext`, а единственную транзакцию и tombstone
|
|
//! создаёт реестр. Archive, immutable bytes и защищённое административное чтение
|
|
//! этой командой не меняются.
|
|
|
|
use crank_core::resource::ResourceError;
|
|
use crank_registry::model::resource::RevokeResourceRequest;
|
|
|
|
use super::ResourcesService;
|
|
|
|
impl ResourcesService {
|
|
pub(crate) async fn revoke(&self, request: RevokeResourceRequest) -> Result<(), ResourceError> {
|
|
self.registry.revoke_resource(request).await
|
|
}
|
|
}
|