From bac3e6840028de143c45b7be914f341b924c75f5 Mon Sep 17 00:00:00 2001 From: NicolasCantu Date: Tue, 4 Mar 2025 14:47:17 +0100 Subject: [PATCH] Add roles to UserDiff --- src/api.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/api.rs b/src/api.rs index 9bc2708..686ad75 100644 --- a/src/api.rs +++ b/src/api.rs @@ -94,6 +94,7 @@ pub struct UserDiff { pub state_id: String, // TODO add a merkle proof that the new_value belongs to that state pub value_commitment: String, pub field: String, + pub roles: BTreeMap, pub description: Option, pub notify_user: bool, pub need_validation: bool, @@ -782,6 +783,7 @@ fn create_diffs(process: &Process, new_state: &ProcessState) -> AnyhowResult