Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug with attributing change to a guide to the repo owner not author
- This was a problem with caching a user object with the wrong email address. - This fixes a bug that could cause github commits to be attributed to the wrong user. Github tracks commits with the email address, not username. - The following scenario would lead to this bug: - User x logs in leading to their username and email being cached - Cache times out - Another visitor browses to a guide written by user x - find_user() incorrectly reads username of user x and email address of logged in user, which there isn't one on this machine. So, the github token defaults to the repo owner. - User x saved to cache with wrong email - User x commits with application and commit attributed to repo owner instead of real author
- Loading branch information