We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 487f05c commit ab55025Copy full SHA for ab55025
adapters/mongo_adapter.go
@@ -60,7 +60,7 @@ func (adapter mongoAdapter) CreateDatabaseUser(ctx context.Context, database str
60
bson.D{
61
{Key: "createUser", Value: username},
62
{Key: "pwd", Value: password},
63
- {Key: "roles", Value: []bson.M{{"role": "dbAdmin", "db": database}}}}).Err()
+ {Key: "roles", Value: []bson.M{{"role": "dbAdmin", "db": database}, {"role": "readWrite", "db": database}}}}).Err()
64
}
65
66
func (adapter mongoAdapter) DeleteDatabaseUser(ctx context.Context, database string, username string) error {
0 commit comments