diff --git a/src/enforcer.ts b/src/enforcer.ts index 81d3be2..1ad7db3 100644 --- a/src/enforcer.ts +++ b/src/enforcer.ts @@ -135,7 +135,7 @@ export class Enforcer { this.initialize(); - if (this.adapter) { + if (this.adapter && (this.adapter instanceof FileAdapter)) { // error intentionally ignored this.loadPolicy(); }