Skip to content

Commit

Permalink
Merge pull request #65 from permitio/asaf/cto-196-bugs-in-getuserperm…
Browse files Browse the repository at this point in the history
…issions

Fix wrong schema passed from SDK to PDP in get-user-permissions
  • Loading branch information
asafc committed Feb 18, 2024
2 parents c68e7ad + 0d21865 commit 6a5d3a8
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 6a5d3a8

Please sign in to comment.