diff options
author | Bryce Johnson <bryce@gitlab.com> | 2016-10-11 18:28:00 +0200 |
---|---|---|
committer | Bryce Johnson <bryce@gitlab.com> | 2016-10-15 08:28:55 +0200 |
commit | 568a405ce43834d5b4da3ff81f1e8a6972db802b (patch) | |
tree | 45376ca73314f6ea7d22c37da2dc22436f6e6d8c /app/controllers/users_controller.rb | |
parent | 5439bd9f952c7e7ee9fa10613655a9761396e1f9 (diff) | |
download | gitlab-ce-568a405ce43834d5b4da3ff81f1e8a6972db802b.tar.gz |
Add exists to users routes and fix endpoint.
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r-- | app/controllers/users_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 1aa22995692..6a881b271d7 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -86,7 +86,7 @@ class UsersController < ApplicationController end def exists - render json: { exists: !Namespace.where(name: params[:username]).nil? } + render json: { exists: Namespace.where(path: params[:username].downcase).any? } end private |