-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error - Maximum call stack size exceeded #1451
Comments
@baenie our environment is Environment: ZenStack version: 2.1.0 |
But I tested all releases. The bug was introduced in v2.0.0. |
Thanks for reporting this, guys. I'll try to reproduce and hopefully make a fix soon! |
Thanks! 🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description and expected behavior
After trying to upgrade ZenStack to v2, I discovered a bug when trying to call
/api/model/membership/findMany
(see error message). Every other table was working fine, expect Membership.After some digging I found out, that it was a field level access policy causing the issue:
@deny("read, update", space.memberships?[auth() == user && !(role in [owner, admin, roleManager])])
After removing the
read
part, it was working just fine.This policy was working just fine in v1 of ZenStack, but I tried every v2 release and in every version the error occured.
Error
Environment:
Additional context
The text was updated successfully, but these errors were encountered: