From 3b53bae257c2932e2487158c2c88e08f472b0ffd Mon Sep 17 00:00:00 2001 From: Jonathan Hall Date: Fri, 26 Jan 2024 18:04:30 +0100 Subject: [PATCH] Propagate cloudant security doc member on Set --- db.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/db.go b/db.go index fd700c12e..3169d4fbe 100644 --- a/db.go +++ b/db.go @@ -622,8 +622,10 @@ func (db *DB) SetSecurity(ctx context.Context, security *Security) error { } defer endQuery() sec := &driver.Security{ - Admins: driver.Members(security.Admins), - Members: driver.Members(security.Members), + Admins: driver.Members(security.Admins), + Members: driver.Members(security.Members), + Cloudant: security.Cloudant, + CouchdbAuthOnly: security.CouchdbAuthOnly, } return secDB.SetSecurity(ctx, sec) }