Skip to content

Commit

Permalink
Merge pull request #20 from hsoderlind/patch-1
Browse files Browse the repository at this point in the history
Make sure to accept empty string as prefix
  • Loading branch information
koresar authored Nov 1, 2024
2 parents 5bb6da1 + d96f8ec commit 03064e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongodb-backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const aclCollectionName = "resources";
function MongoDBBackend({ client, db, prefix, useSingle, useRawCollectionNames }) {
this.client = client;
this.db = db || client.db(client.s.options.dbName);
this.prefix = prefix || "acl_";
this.prefix = typeof prefix !== 'undefined' ? prefix : "acl_";
this.useSingle = Boolean(useSingle);
this.useRawCollectionNames = useRawCollectionNames === false; // requires explicit boolean false value
}
Expand Down

0 comments on commit 03064e8

Please sign in to comment.