We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aedfcf commit b9a3d45Copy full SHA for b9a3d45
src/enforcer.ts
@@ -501,7 +501,7 @@ export async function newEnforcerWithClass<T extends Enforcer>(enforcer: new ()
501
if (typeof params[1] === 'string') {
502
await e.initWithFile(params[0].toString(), params[1].toString());
503
} else {
504
- await e.initWithAdapter(params[0].toString(), params[1]);
+ await e.initWithAdapter(params[0].toString(), params[1], params[2] === true);
505
}
506
507
0 commit comments