Fix: 新規登録制限をかけている場合、招待されても登録できない問題 (#558)
This commit is contained in:
parent
91cb329e18
commit
0ca2a73fd2
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
|
||||||
skip_before_action :require_functional!
|
skip_before_action :require_functional!
|
||||||
|
|
||||||
def show
|
def show
|
||||||
if reach_registrations_limit?
|
if reach_registrations_limit? && !current_user&.valid_invitation?
|
||||||
render :limitation_error
|
render :limitation_error
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue