diff --git a/src/services/authz-management.service.ts b/src/services/authz-management.service.ts index 2be5c53..502a093 100644 --- a/src/services/authz-management.service.ts +++ b/src/services/authz-management.service.ts @@ -9,7 +9,7 @@ import * as casbin from 'casbin'; export class AuthZManagementService { constructor( @Inject(AUTHZ_ENFORCER) - private readonly enforcer: casbin.Enforcer + public readonly enforcer: casbin.Enforcer ) {} /** diff --git a/src/services/authz-rbac.service.ts b/src/services/authz-rbac.service.ts index 05b1c5c..e17cff9 100644 --- a/src/services/authz-rbac.service.ts +++ b/src/services/authz-rbac.service.ts @@ -11,7 +11,7 @@ import * as casbin from 'casbin'; export class AuthZRBACService { constructor( @Inject(AUTHZ_ENFORCER) - private readonly enforcer: casbin.Enforcer + public readonly enforcer: casbin.Enforcer ) {} /**