This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app
Blake Erickson dbb3ddc7a6 FIX: approve invited user
This commit fixes the case where invited users who typed in a password
would not be approved by default. Because we moved the user create logic
for an invited user there was a clash with the `save` in the user model
and the `save` in the invite_redeemer class.

- added approve logic into invite_redeemer class.
- added tests to verify that the user is approved
- added a check to see if must_approve_users is on
- added a check to see if the inviter is staff
- go ahead and approve the user if must_approve_users is off
- keep existing User.approve workflow if user exists
- improve if/else logic to remove duplicate code
- use `Time.zone.now`
2017-03-05 06:58:23 -07:00
..
assets FIX: flag action buttons are missing when visiting flags from the hamburger menu 2017-03-04 11:36:58 -05:00
controllers Merge pull request #4729 from tgxworld/dont_mark_user_as_valid 2017-03-03 15:57:30 -05:00
helpers FEATURE: replace emoji with unicode in title and description meta tags 2017-02-22 16:24:13 -05:00
jobs FEATURE: further restrict downloading of backups 2017-03-01 08:28:34 -07:00
mailers FEATURE: further restrict downloading of backups 2017-03-01 08:28:34 -07:00
models FIX: approve invited user 2017-03-05 06:58:23 -07:00
serializers FEATURE: new category setting for whether to show latest topics or top topics by default 2017-03-03 11:30:44 -05:00
services FEATURE: each category can control how many topics to show on categories page 2017-03-01 15:12:57 -05:00
views FEATURE: subcategories can be discovered by web crawlers on page 1 of the parent category topics list 2017-03-02 15:06:56 -05:00