Check all namespaces on validation of new username.
This commit is contained in:
parent
726a414169
commit
ed1cd98858
|
@ -86,7 +86,7 @@ class UsersController < ApplicationController
|
|||
end
|
||||
|
||||
def exists
|
||||
render json: { exists: Namespace.where(path: params[:username].downcase).any? }
|
||||
render json: { exists: !!Namespace.find_by_path_or_name(params[:username]) }
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Check all namespaces on validation of new username.
|
||||
merge_request: 7537
|
||||
author:
|
Loading…
Reference in New Issue