Skip to content
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: improve permissions checks #482

Merged
merged 1 commit into from
Feb 12, 2021
Merged

permissions: improve permissions checks #482

merged 1 commit into from
Feb 12, 2021

Conversation

sebdeleze
Copy link
Contributor

Co-Authored-by: Sébastien Délèze [email protected]

@sebdeleze sebdeleze marked this pull request as ready for review February 10, 2021 16:08
@sebdeleze sebdeleze requested a review from jma February 10, 2021 16:09
@sebdeleze sebdeleze added the enhancement Enhancement of an existing feature label Feb 10, 2021
* Avoids to check permissions if the call is done by the a public view.
* Uses user record instead of flask user in permissions.
* Avoids multiple calls when retrieving current user record.
* Avoids multiple calls when retrieving current organisation.
* Closes #245.

Co-Authored-by: Sébastien Délèze <[email protected]>
@sebdeleze sebdeleze merged commit 38aab61 into rero:staging Feb 12, 2021
@sebdeleze sebdeleze deleted the sed-improve-permissions branch February 12, 2021 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test API request time with permissions loading and 1000 records.
2 participants