Skip to content

Commit

Permalink
refactor: allows user to access underlying casbin enforcer
Browse files Browse the repository at this point in the history
allows user to access underlying casbin enforcer to make use of any api, such as enforce, making it
more flexible
  • Loading branch information
dreamdevil00 committed Mar 24, 2024
1 parent ec3da2f commit 706aa77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/authz-management.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/services/authz-rbac.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {}

/**
Expand Down

0 comments on commit 706aa77

Please sign in to comment.