node-casbin
node-casbin copied to clipboard
does the node-casbin support `subjectPriority`?
This is the doc: https://casbin.io/docs/priority-model#load-policy-with-priority-based-on-role-and-user-hierarchy
Then I place the demo code to the online editor: https://casbin.org/casbin-editor/#53YFYAD7M
When I click RUN THE TEST button, it throw unsupported effect!
@nodece @Zxilly @Shivansh-yadav13
@Shivansh-yadav13 plz implement it in Node-Casbin
/cc @nodece
@Shivansh-yadav13 plz implement it in Node-Casbin
Ok.
We need to port the subjectPriority feature from Go Casbin to Node-Casbin
Refer to how Go Casbin implements it
- Code: https://github.com/casbin/casbin/search?q=subjectPriority&type=issues
- Docs: https://casbin.org/docs/syntax-for-models#policy-effect:~:text=Priority-,subjectPriority,-(p.eft)
:tada: This issue has been resolved in version 5.22.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket: