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

Fix order of loading consent #181

Merged
merged 1 commit into from
Oct 26, 2023
Merged

Fix order of loading consent #181

merged 1 commit into from
Oct 26, 2023

Conversation

nplasterer
Copy link
Contributor

Turns out that consent will load the entries newest to oldest. This would make newer entries get overridden by older entries so if you allowed someone and then blocked them it would always show as allowed.
By reversing the iteration it will take the newest entries last and succeed.

@nplasterer nplasterer self-assigned this Oct 26, 2023
@nplasterer nplasterer requested a review from a team as a code owner October 26, 2023 21:20
@nplasterer nplasterer merged commit de6191a into main Oct 26, 2023
1 check passed
@nplasterer nplasterer deleted the np/fix-consent-order branch October 26, 2023 21:23
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