node-casbin icon indicating copy to clipboard operation
node-casbin copied to clipboard

does the node-casbin support `subjectPriority`?

Open vaseala opened this issue 3 years ago • 3 comments

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!

vaseala avatar Sep 16 '22 05:09 vaseala

@nodece @Zxilly @Shivansh-yadav13

casbin-bot avatar Sep 16 '22 05:09 casbin-bot

@Shivansh-yadav13 plz implement it in Node-Casbin

/cc @nodece

hsluoyz avatar Sep 16 '22 07:09 hsluoyz

@Shivansh-yadav13 plz implement it in Node-Casbin

Ok.

Shivansh-yadav13 avatar Sep 16 '22 13:09 Shivansh-yadav13

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)

hsluoyz avatar Jan 10 '23 12:01 hsluoyz

:tada: This issue has been resolved in version 5.22.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Jan 31 '23 13:01 github-actions[bot]