diff --git a/zddc/internal/handler/fileapi_test.go b/zddc/internal/handler/fileapi_test.go index 1fb9b39..8098e6f 100644 --- a/zddc/internal/handler/fileapi_test.go +++ b/zddc/internal/handler/fileapi_test.go @@ -511,13 +511,10 @@ func TestFileAPI_WORM_DocControllerNeedsExplicitGrant(t *testing.T) { t.Fatalf("dc without explicit grant → issued: want 403, got %d: %s", rec.Code, rec.Body.String()) } - // Operator places an explicit worm: grant at archive/Acme/issued/.zddc - // naming the document-controller role. That principal then gets - // {r, c} inside the WORM zone — the embedded `worm: {}` (no - // controllers) is unioned with this deeper grant. - issuedZ := []byte(`worm: - _doc_controller: cr -`) + // Operator names the document-controller role in the issued/ WORM + // zone. That role's members then get {r, c} there — the embedded + // `worm: []` (no controllers) is unioned with this deeper grant. + issuedZ := []byte("worm:\n - _doc_controller\n") if err := os.WriteFile(filepath.Join(root, "Project-X/archive/Acme/issued/.zddc"), issuedZ, 0o644); err != nil { t.Fatalf("write issued .zddc: %v", err) } @@ -605,8 +602,9 @@ func TestFileAPI_AutoMkdirOwnership(t *testing.T) { func TestFileAPI_AutoMkdirNotInIssued(t *testing.T) { _, do, root := rolePermissionsTestSetup(t) - // Place an explicit worm: grant so dc has cr in the issued WORM zone. - issuedZ := []byte("worm:\n _doc_controller: cr\n") + // Name the document-controller role in the issued/ WORM zone so its + // members get cr there. + issuedZ := []byte("worm:\n - _doc_controller\n") if err := os.WriteFile(filepath.Join(root, "Project-X/archive/Acme/issued/.zddc"), issuedZ, 0o644); err != nil { t.Fatalf("seed issued .zddc: %v", err) } diff --git a/zddc/internal/handler/tables.html b/zddc/internal/handler/tables.html index 2b8b288..7658021 100644 --- a/zddc/internal/handler/tables.html +++ b/zddc/internal/handler/tables.html @@ -1300,7 +1300,7 @@ body.help-open .app-header {