Browse Source
Fix failure when “Require a reason to join” is set with open registrations (#22127)
closed-social-glitch-2
Claire
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
app/models/user.rb
|
|
@ -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 |
|
|
|