Skip to content

Commit eb1f785

Browse files
authored
fix: use correct role for mongo database owners
1 parent 6035408 commit eb1f785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adapters/mongo_adapter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (adapter mongoAdapter) CreateDatabaseUser(username string, password string,
6161
bson.D{
6262
{Key: "createUser", Value: username},
6363
{Key: "pwd", Value: password},
64-
{Key: "roles", Value: []bson.M{{"role": "dbAdmin", "db": database}}}})
64+
{Key: "roles", Value: []bson.M{{"role": "dbOwner", "db": database}}}})
6565

6666
if r.Err() != nil {
6767
return r.Err()

0 commit comments

Comments
 (0)