Skip to content

Commit

Permalink
Merge pull request #870 from go-kivik/setSecurityCloudant
Browse files Browse the repository at this point in the history
Propagate cloudant security doc member on Set
  • Loading branch information
flimzy authored Jan 26, 2024
2 parents f70329c + 3b53bae commit f27c600
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit f27c600

Please sign in to comment.