diff options
| author | tv <tv@krebsco.de> | 2026-11-08 09:33:41 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-08 10:36:32 +0100 |
| commit | 47c3c7842f6c31af18cfaa2d84ada5dc83b9831b (patch) | |
| tree | 280530bae675ddb51fcc5a93e657f1016d6bdda1 /src/access/screen.rs | |
| parent | f713fe668c29ecd60df547d989b0ace40cfe4da0 (diff) | |
access: judged by the policy written under
The rules read the policy at the change's dependencies only for strict
mode, so history from before the policy was judged by today's rules
when a late node caught up, or when REFUSALS had it judged again. A
change written while the document had no policy, or one this node
doesn't know, is now judged by none.
Review finding 6.
Diffstat (limited to 'src/access/screen.rs')
| -rw-r--r-- | src/access/screen.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/access/screen.rs b/src/access/screen.rs index 8d23b47..35a2af7 100644 --- a/src/access/screen.rs +++ b/src/access/screen.rs @@ -579,6 +579,11 @@ mod tests { }; transact(&mut theirs, UnixMillis(1), &writer, |doc| { store::write_path(doc, &path("_continuum/swarm"), &json!("s"))?; + store::write_path( + doc, + &path("_continuum/access/policy"), + &json!({"version": 1}), + )?; store::write_path(doc, &path("_continuum/users/alice"), &alice) }) .unwrap(); |
