Skip to content

Bug fix -- getAvatar would falsely return "user not admin" when user requested own avatar - #469

Merged
sentriz merged 2 commits into
sentriz:masterfrom
brian-doherty:master
Feb 13, 2024
Merged

Bug fix -- getAvatar would falsely return "user not admin" when user requested own avatar#469
sentriz merged 2 commits into
sentriz:masterfrom
brian-doherty:master

Conversation

@brian-doherty

Copy link
Copy Markdown
Contributor

This was because user and reqUser were deeply equal but different objects. Changed to check their IDs instead.

brian-doherty and others added 2 commits February 13, 2024 16:27
…wn avatar because User objects were not the same object. Fixed to test IDs instead.
@sentriz
sentriz merged commit 2949b4c into sentriz:master Feb 13, 2024
@sentriz

sentriz commented Feb 13, 2024

Copy link
Copy Markdown
Owner

oh nice, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants