Skip to content

Commit

Permalink
fix wrong schema passed from SDK to PDP in get-user-permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
asafc committed Dec 10, 2023
1 parent c68e7ad commit 0d21865
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/enforcement/enforcer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ export class Enforcer implements IEnforcer {
const checkTimeout = config.timeout || this.config.timeout;
const input = {
user: isString(user) ? { key: user } : user,
tenants: tenants,
resource: resources,
resource_type: resource_types,
tenants,
resources,
resource_types,
};
return await this.client
.post<OpaGetUserPermissionsResult | IUserPermissions>('user-permissions', input, {
Expand Down

0 comments on commit 0d21865

Please sign in to comment.