Improved signup check.
This commit is contained in:
parent
9c8339e716
commit
26cd94acab
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ class UsersController < ApplicationController
|
|||
return
|
||||
end
|
||||
|
||||
if !params[:signup]
|
||||
# check signup option only after admin account is created
|
||||
if count > 2 && !params[:signup]
|
||||
render json: { error_human: 'Only signup is possible!' }, status: :unprocessable_entity
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue