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

Bugfix for permission management of entities #106

Merged
merged 7 commits into from
Nov 25, 2022

Conversation

crazyscientist
Copy link
Collaborator

A small bug allowed authenticated users to perform any actions on entities without permission, when the reviewable flag of the schema was unset. On the flip side, it prevented them from creating change requests for entities they had no permissions on.

This change fixes the situation:

  • Any authenticated user is allowed to create change requests
  • Only authorized users are allowed to apply changes to entities

@crazyscientist crazyscientist changed the title Bugfix for permission management of entities Draft: Bugfix for permission management of entities Nov 18, 2022
A small bug allowed authenticated users to perform any actions on entities
without permission, when the `reviewable` flag of the schema was unset.
On the flip side, it prevented them from creating change requests for entities
they had no permissions on.

This change fixes the situation:

* Any authenticated user is allowed to create change requests
* Only authorized users are allowed to apply changes to entities
@crazyscientist crazyscientist changed the title Draft: Bugfix for permission management of entities Bugfix for permission management of entities Nov 24, 2022
@der-gabe der-gabe self-requested a review November 24, 2022 17:01
backend/tests/conftest.py Outdated Show resolved Hide resolved
@crazyscientist
Copy link
Collaborator Author

Thank you 🙂

@crazyscientist crazyscientist merged commit 1d7a94f into SUSE:master Nov 25, 2022
@crazyscientist crazyscientist deleted the permission_issue branch November 25, 2022 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants