We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb67ef6 commit 72c2001Copy full SHA for 72c2001
src/coreEnforcer.ts
@@ -201,6 +201,16 @@ export class CoreEnforcer {
201
public async loadFilteredPolicy(filter: any): Promise<boolean> {
202
this.model.clearPolicy();
203
204
+ return this.loadIncrementalFilteredPolicy(filter);
205
+ }
206
+
207
+ /**
208
+ * LoadIncrementalFilteredPolicy append a filtered policy from file/database.
209
+ *
210
+ * @param filter the filter used to specify which type of policy should be appended.
211
+ */
212
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
213
+ public async loadIncrementalFilteredPolicy(filter: any): Promise<boolean> {
214
if ('isFiltered' in this.adapter) {
215
await this.adapter.loadFilteredPolicy(this.model, filter);
216
} else {
0 commit comments