Skip to content

Conversation

@timyates
Copy link
Contributor

Previously we checked the owner of the passed in object, but not the owner of the db object in the case of an update.

This meant that people could effectively change ownership of earned certifications from someone else to themselves.

This commit makes the change so we check both the object in flight, and the object at rest for updates.

Previously we checked the owner of the passed in object, but not the owner of the db object in the case of an update.

This meant that people could effectively change ownership of earned certifications from someone else to themselves.

This commit makes the change so we check both the object in flight, and the object at rest for updates.
@timyates timyates added bug Something isn't working server security Security related issues labels Jun 12, 2024
@timyates timyates requested a review from mkimberlin June 12, 2024 12:49
@timyates timyates self-assigned this Jun 12, 2024
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also changed the join from LEFT JOIN to JOIN, this is a no-op I believe as there cannot be one without the other, however JOIN is more correct

@timyates timyates merged commit 2ceec47 into develop Jun 14, 2024
@timyates timyates deleted the bugfix-certification-permission-fix branch June 14, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working security Security related issues server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants