GitLab now enforces expiry dates on tokens that originally had no set expiration date. Those tokens were given an expiration date of one year later. Please review your personal access tokens, project access tokens and group access tokens to ensure you are aware of upcoming expirations. Administrators of GitLab can find more information on how to identify and mitigate interruption, please take a look at our documentation.
Fix for #3345165 for 3.x branch. Removes unnecessary call to User::load, which failed due to passing in user object rather than user ID.
This is required to allow automated tests in #3343101 to pass.