Alan Guo Xiang Tan 036467aac3
FIX: Approves user when redeeming an invite for invites only sites (#16987)
When a site has `SiteSetting.invite_only` enabled, we create a
`ReviewableUser`record when activating a user if the user is not
approved. Therefore, we need to approve the user when redeeming an
invite.

There are some uncertainties surrounding why a `ReviewableRecord` is
created for a user in an invites only site but this commit does not seek
to address that.

Follow-up to 7c4e2d33fa4b922354c177ffc880a2f2701a91f9
2022-06-03 14:50:58 +08:00
..
2019-10-04 11:11:03 +10:00
2021-12-02 22:41:55 +05:30
2021-06-28 10:54:23 +08:00
2020-12-02 12:36:41 +05:30