Skip to content

Conversation

Shorty1o1
Copy link
Contributor

When calling AuthZService.enforce, following error occours:

Error: invalid request size: expected 3, got 1, rvals: a,b,c"

This happens because the destructoring of the array was missing for the enforce Methods, on other methods (e.g. hasPolicy) it is correct

@hsluoyz
Copy link
Member

hsluoyz commented Feb 12, 2025

@nodece @Shivansh-yadav13 please review

@CLAassistant
Copy link

CLAassistant commented Feb 12, 2025

CLA assistant check
All committers have signed the CLA.

@hsluoyz hsluoyz changed the title Fix enforce feat: fix "invalid request size: expected 3, got 1" bug in AuthZService.enforce Feb 12, 2025
@hsluoyz hsluoyz merged commit 7b4d406 into node-casbin:master Feb 12, 2025
5 of 7 checks passed
github-actions bot pushed a commit that referenced this pull request Feb 12, 2025
# [2.13.0](v2.12.0...v2.13.0) (2025-02-12)

### Features

* fix "invalid request size: expected 3, got 1" bug in AuthZService.enforce ([#175](#175)) ([7b4d406](7b4d406))
Copy link

🎉 This PR is included in version 2.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants