We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ConditionsProxy.get currently combins all the conditions into a single object. This prevents you from declaring rules like the following.
Ex: Anyone can access public uploads, and users can access their own uploads
everyone({ can }) { can(Actions.read, Upload, { public: true }); }, user({ can, cannot, user }) { can(Actions.read, Upload, { user: user.id, public: false }); },
Calling conditions.get() produces the following object:
conditions.get()
{ user: '4663a9ea-627c-483e-8e28-88739ffa0dc0', public: true }
Is there a possible way to work around this?
The problematic code can be found here:
nest-casl/src/proxies/conditions.proxy.ts
Line 11 in 1e785bb
Thanks!
The text was updated successfully, but these errors were encountered:
Looks like a bug, I'll check asap.
Sorry, something went wrong.
Any progress? I've been waiting for this fix.
Fixed in v1.6.13
liquidautumn
No branches or pull requests
ConditionsProxy.get currently combins all the conditions into a single object. This prevents you from declaring rules like the following.
Ex: Anyone can access public uploads, and users can access their own uploads
Calling
conditions.get()
produces the following object:Is there a possible way to work around this?
The problematic code can be found here:
nest-casl/src/proxies/conditions.proxy.ts
Line 11 in 1e785bb
Thanks!
The text was updated successfully, but these errors were encountered: