From 046b738c74f62469f7a080415690e2dacd85e1e6 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 7 Nov 2026 22:35:21 +0100 Subject: remake: forgetting and releasing name their user Forget records and released quarantines name the user who made them, so they are judged by its capabilities. Auth plan M6. --- src/remake/mod.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/remake/mod.rs') diff --git a/src/remake/mod.rs b/src/remake/mod.rs index 67fa77b..342eab3 100644 --- a/src/remake/mod.rs +++ b/src/remake/mod.rs @@ -297,6 +297,19 @@ pub(crate) trait Host: Clone + Send + Sync + 'static { T: Send + 'static, E: From + Send + 'static; + /// [`commit_doc`](Self::commit_doc) for `user`, who asked through the API: the + /// change names them (`replica::Writer`), as rules by path judge it + /// (`access::rules`). + fn commit_doc_for( + &self, + user: Option, + f: F, + ) -> impl Future> + Send + where + F: FnOnce(&mut Transaction<'_>) -> Result + Send + 'static, + T: Send + 'static, + E: From + Send + 'static; + /// What a replay does with writes a newer one superseded (`--superseded-writes`). fn superseded(&self) -> Superseded; -- cgit v1.3.1