stalniy / casl

CASL is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access
https://casl.js.org/
MIT License
5.92k stars 267 forks source link

How to use accessibleFieldsBy without Mongoose (with basic Mondodb driver) #837

Closed thomasdvd closed 6 months ago

thomasdvd commented 10 months ago

Is your feature request related to a problem? Please describe. I would like to use accessible by plugins with native MongoDB Adapter

Describe the solution you'd like Import accessibleFieldsBy and other helper utility functions directly like accessibleBy

stalniy commented 10 months ago

For now there is no way to do this. Just use permittedFieldsBy helper from @casl/ability/extra

stalniy commented 7 months ago

Fixed in #880

stalniy commented 6 months ago

released in @casl/mongoose@8.0.0