With CASL ABAC, is it able to parse Bigint?
The object being passed as a subject is below: permissions.can("read", subject("appprofile", profile))) The profile being checked looks like this: { name: "Dave", id: 1n, <--- the bigint from Prisma } the JSON being used in createMongoAbility is like this: [ { action: "read", subject: "appprofile", conditions: { id: "1", }, } ] ... but the check fails. I'm assuming its a bigint parsing issue in CASL or am I on the wrong track?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.