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
1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
+ 2
0
@@ -186,6 +186,7 @@ def reorder_users(users)
@@ -186,6 +186,7 @@ def reorder_users(users)
optional :username, type: String, desc: 'The username of the user'
optional :username, type: String, desc: 'The username of the user'
use :optional_attributes
use :optional_attributes
end
end
 
# rubocop: disable CodeReuse/ActiveRecord
put ":id" do
put ":id" do
authenticated_as_admin!
authenticated_as_admin!
@@ -224,6 +225,7 @@ def reorder_users(users)
@@ -224,6 +225,7 @@ def reorder_users(users)
render_validation_error!(user)
render_validation_error!(user)
end
end
end
end
 
# rubocop: enable CodeReuse/ActiveRecord
desc 'Add an SSH key to a specified user. Available only for admins.' do
desc 'Add an SSH key to a specified user. Available only for admins.' do
success Entities::SSHKey
success Entities::SSHKey
Loading