New Member has history of an old member with same username
Summary
I had a previous user and I deleted it. I create a new user using THE SAME username but a different email address. When I go to the "Project" menu, I can see the projects the old user has privileges (or visited). This is a security ISSUE
Steps to reproduce
Create a new user, assign projects, create, move around so you can get history. Delete the user. Create a new user using the same username of the previous user but a different email address. You will see the history of the previous user.
Example Project
not related to a project
What is the current bug behavior?
I can see the history of a previous user with the same username.
What is the expected correct behavior?
Is a new user, so history should be empty, even though the username is the same. History needs to be deleted.
Relevant logs and/or screenshots
In the Screenshot the Histoy I can see if from my previous user (The new user has no access to those projects, actually I created new projects and subprojects and doesn't appear). The user is mdenda.
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)