aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/users.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/users.rs')
-rw-r--r--src/api/users.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/users.rs b/src/api/users.rs
index 1d01af7..3b8174d 100644
--- a/src/api/users.rs
+++ b/src/api/users.rs
@@ -23,6 +23,7 @@
//! the document, logged, named by who made it, and refused (`409`) where it would lock
//! its maker out (`access::registry_kept`).
+use crate::document::signatures::Sign;
use axum::{
Extension, Json,
extract::{Path, State},
@@ -166,7 +167,7 @@ async fn change(
let writer = user.to_owned();
let since = state.clock.now_millis().as_u64();
state
- .mutate_doc_for(Some(user.to_owned()), move |doc| {
+ .mutate_doc_for(Some(user.to_owned()), Sign::Protocol, move |doc| {
let before = Before::of(&*doc, &writer);
f(doc, &by, since)?;
registry_kept(&*doc, &registry::users_dir(), before, &writer)