You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @robbyphillips,
sorry for the delay! Thanks for your issue and thoughts.
I definitely would go for the debug library. I should use it for my libraries, I admit. A PR would be highly appreciated and merged soon. If you got time, please feel free to start with the branch: https://github.com/fratzinger/feathers-casl/tree/basic-permission-performant-select as I will merge it to master soon.
It would really nice to optionally enable verbose logging using CASL's
relevantRuleFor
feature. https://casl.js.org/v5/en/advanced/debugging-testing#debuggingI can think of three different ways that we might expose it
Forbidden
error when something likeauthorize({ relevantRule: true })
actionOnForbidden
callback and leave the logging to the library consumer.What do you think? If any of these sound good, I would be willing to make a PR.
The text was updated successfully, but these errors were encountered: