Skip to content
Snippets Groups Projects

Make getting a user by the username case insensitive

Merged William George requested to merge awgeorge1/gitlab-ce:master into master
All threads resolved!
Compare and Show latest version
3 files
+ 42
9
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -254,7 +254,7 @@ def assignee
if assignee_id?
User.find_by(id: params[:assignee_id])
elsif assignee_username?
UserFinder.new(params[:assignee_username]).find_by_username
User.find_by_username(params[:assignee_username])
else
nil
end
@@ -282,7 +282,7 @@ def author
if author_id?
User.find_by(id: params[:author_id])
elsif author_username?
UserFinder.new(params[:author_username]).find_by_username
User.find_by_username(params[:author_username])
else
nil
end
Loading