-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support overriding rules per route #9
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 23 26 +3
=========================================
+ Hits 23 26 +3
Continue to review full report at Codecov.
|
rest: { | ||
getObj: request => request.userId | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this new behavior of the values that casbin.rest can have should be documented in the API section of the README. It was only very briefly shown because the only supported value before was true
. I saw you added it below the table of the plugin options but it's worth mentioning more explicitly above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One outstanding comment about docs but otherwise LGTM. Thanks!
fixes #2
Ideally should be reviewed and merged after #6 in order to reduce the amount of noise, as it buils upon it.