Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

organisations: validate modes update #353

Merged
merged 1 commit into from
Oct 21, 2020
Merged

organisations: validate modes update #353

merged 1 commit into from
Oct 21, 2020

Conversation

sebdeleze
Copy link
Contributor

This PR checks if current user can activate the shared or dedicated mode. Only super users can do this.

Co-Authored-by: Sébastien Délèze sebastien.deleze@rero.ch

@sebdeleze sebdeleze marked this pull request as ready for review October 16, 2020 12:41
@sebdeleze sebdeleze requested a review from zannkukai October 16, 2020 12:41
This PR checks if current user can activate the `shared` or `dedicated` mode. Only super users can do this.

* Adds a validation for `isShared` and `isDedicated` properties in marshmallow schema.
* Closes #351.

Co-Authored-by: Sébastien Délèze <sebastien.deleze@rero.ch>
@sebdeleze sebdeleze merged commit ccf3d47 into rero:dev Oct 21, 2020
@sebdeleze sebdeleze deleted the sed-org-update-mode branch October 21, 2020 07:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disallow modify isDedicated and isShared properties for non superusers.
2 participants