-
Notifications
You must be signed in to change notification settings - Fork 25
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
permissions: refactoring organisation permissions #1051
Conversation
1f4bd67
to
312bcf6
Compare
809ef1c
to
9be0bc5
Compare
29ad8e7
to
36597b7
Compare
36597b7
to
d8cf6eb
Compare
d8cf6eb
to
eeb3582
Compare
30cf430
to
3c96dbc
Compare
3c96dbc
to
921bcf2
Compare
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.
Commit message approved.
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.
Small comments. Thanks for this good job!
|
||
:param user: Logged user. | ||
:param record: Record to check. | ||
:returns: True is action can be 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.
Please rename returns to return and check it on the entire project. Thanks.
921bcf2
to
4c7ee14
Compare
* Refactoring the permissions process using a permission factory and permission classes for any resource instead of resources shared functions. This way is the same way used by SONAR & Zenodo project. * Creates permission factory method. * Creates basic permission classes. * Create Organisation permission class. * Fixes unitests. Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
4c7ee14
to
415265d
Compare
permission classes for any resource instead of resources shared
functions. This way is the same way used by SONAR & Zenodo project
Co-Authored-by: Renaud Michotte renaud.michotte@gmail.com
How to test?
poetry run ./run-tests.sh
Code review check list