Fix failure when “Require a reason to join” is set with open registrations (#22127)

lolsob-rspec
Claire 2022-12-07 16:39:58 +01:00 committed by GitHub
parent 56e253553f
commit 145a3506b3
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ class User < ApplicationRecord
end
def invite_text_required?
Setting.require_invite_text && !invited? && !external? && !bypass_invite_request_check?
Setting.require_invite_text && !open_registrations? && !invited? && !external? && !bypass_invite_request_check?
end
def trigger_webhooks