Fix: 新規登録制限をかけている場合、招待されても登録できない問題 (#558)

This commit is contained in:
KMY(雪あすか) 2024-02-16 11:44:11 +09:00 committed by GitHub
parent 91cb329e18
commit 0ca2a73fd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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