-
Notifications
You must be signed in to change notification settings - Fork 17
Add [auth|security]:checkRights #577
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
Conversation
Codecov Report
@@ Coverage Diff @@
## 7-dev #577 +/- ##
==========================================
- Coverage 88.28% 87.61% -0.67%
==========================================
Files 32 32
Lines 1451 1462 +11
Branches 254 259 +5
==========================================
Hits 1281 1281
- Misses 120 131 +11
Partials 50 50
Continue to review full report at Codecov.
|
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.
I'm sorry Kuzzle documentation was not accurate, can you correct this PR with the new doc ?
kuzzleio/kuzzle#1912
Also can you choose better names for method arguments since they will be displayed in the editor with the jsdoc
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
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.
The methods should directly returns the boolean IMHO
doc/7/controllers/security/check-rights/snippets/check-rights.test.yml
Outdated
Show resolved
Hide resolved
doc/7/controllers/security/check-rights/snippets/check-rights.js
Outdated
Show resolved
Hide resolved
doc/7/controllers/security/check-rights/snippets/check-rights.js
Outdated
Show resolved
Hide resolved
doc/7/controllers/security/check-rights/snippets/check-rights.js
Outdated
Show resolved
Hide resolved
|
||
## Resolves | ||
|
||
The returned result contains the following property: |
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.
The allowed
boolean is directly returned
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
…test.yml Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
Co-authored-by: Adrien Maret <[email protected]>
# [7.5.0](https://github.com/kuzzleio/sdk-javascript/releases/tag/7.5.0) (2021-01-17) #### New features - [ [#577](#577) ] Add [auth|security]:checkRights ([Yoann-Abbes](https://github.com/Yoann-Abbes)) - [ [#576](#576) ] Add document:upsert ([Yoann-Abbes](https://github.com/Yoann-Abbes)) ---
What does this PR do?
Add [auth|security]:checkRights #571
How should this be manually tested?
...
Other changes
Boyscout