mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-02 10:37:59 +08:00
Fixes two bugs in `invite_required?` that allowed bypassing invite-only signup during OAuth: - `&&` → `||`: a route like `/t/<invite_key>` (topics#show) had `action == "show"`, making the `&&` false and falling through to the invite key lookup - `Invite.exists?` → `Invite.find_by(...)&.redeemable?`: existence alone isn't enough — expired/redeemed invites should not grant access |
||
|---|---|---|
| .. | ||
| associate_accounts_controller.rb | ||
| discourse_id_controller.rb | ||
| omniauth_callbacks_controller.rb | ||