discourse/app/models
Arpit Jalan 3508046e33 FIX: invited users were not granted trust level based on their group
https://meta.discourse.org/t/bulk-invites-and-trust-level/73535

If the user enters password when accepting invite they were not granted
trust level based on their group privileges. It was because `password_required` was set to true when creating user record and when the user was updated again when granting trust level the password validation was raising error saying that the password is empty. This commit fetches fresh user record after the user is created so that the user record can be updated successfully.
2017-11-23 22:19:28 +05:30
..
concerns minor, ensure ordering of custom fields is consistent 2017-11-16 15:14:10 +11:00
about.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
admin_dashboard_data.rb Rename "Blocked" to "Silenced" 2017-11-10 14:10:27 -05:00
api_key.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
application_request.rb Explicitly avoid all readonly protection and scoping 2017-10-25 13:31:44 +11:00
auto_track_duration_site_setting.rb
backup.rb FEATURE: allow specifying s3 config via globals 2017-10-06 16:20:01 +11:00
badge_grouping.rb
badge_type.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
badge.rb FIX: badge description links broken on subfolder 2017-10-31 15:18:52 -04:00
category_and_topic_lists.rb
category_custom_field.rb
category_featured_topic.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
category_featured_user.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
category_group.rb
category_list.rb Fix the build. 2017-08-01 17:57:26 +09:00
category_page_style.rb
category_search_data.rb annotate models 2017-08-16 10:38:11 -04:00
category_tag_group.rb annotate models 2017-08-16 10:38:11 -04:00
category_tag.rb annotate models 2017-08-16 10:38:11 -04:00
category_user.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
category.rb FEATURE: category setting for mailinglist mirror 2017-11-17 15:29:14 +01:00
child_theme.rb annotate models 2017-08-16 10:38:11 -04:00
color_scheme_color.rb
color_scheme.rb FIX: Header primary color was too dark in dark mode 2017-10-03 13:01:05 -04:00
custom_emoji.rb Update annotations. 2017-03-22 14:26:53 +08:00
developer.rb
digest_email_site_setting.rb
directory_item.rb FIX: stop counting PMs, deleted topics and whispers in directory and user stats 2017-11-20 16:44:09 +11:00
discourse_single_sign_on.rb FIX: SSO email match should be case insensitive 2017-11-08 20:37:41 +05:30
discourse_version_check.rb REFACTOR: Avoid duplicated logic on server and client. 2017-11-21 17:10:04 +08:00
draft_sequence.rb Improve specs. 2017-09-25 13:49:00 +08:00
draft.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
email_change_request.rb
email_log.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
email_token.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
embeddable_host.rb annotate models 2017-08-16 10:38:11 -04:00
embedding.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
emoji_set_site_setting.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
emoji.rb FIX: be more lenient when deleting a custom emoji 2017-11-20 23:50:23 +01:00
facebook_user_info.rb
github_user_info.rb
given_daily_like.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
global_setting.rb FEATURE: Allow plugins to easily add defaults to GlobalSetting 2017-11-16 08:39:29 +11:00
google_user_info.rb
group_archived_message.rb annotate models 2017-08-16 10:38:11 -04:00
group_custom_field.rb
group_history.rb
group_manager.rb
group_mention.rb annotate models 2017-08-16 10:38:11 -04:00
group_user.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
group.rb FIX: Unable to invite groups that are not public visible into pms. 2017-11-03 21:40:33 +08:00
incoming_domain.rb FIX: If the host can't be extracted don't raise an error 2017-05-04 13:26:37 -04:00
incoming_email.rb removes whitespaces and uses scope 2017-11-13 15:23:24 +01:00
incoming_link.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
incoming_links_report.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
incoming_referer.rb
instagram_user_info.rb
invite_redeemer.rb FIX: invited users were not granted trust level based on their group 2017-11-23 22:19:28 +05:30
invite.rb FIX: counting invites didn't work 2017-11-14 11:40:07 +01:00
invited_group.rb
like_notification_frequency_site_setting.rb
locale_site_setting.rb FIX: Don't load other locales in test mode 2017-11-15 12:50:20 -05:00
mailing_list_mode_site_setting.rb Remove daily mailing mode option as it doesn't scale. 2017-05-05 12:21:50 +08:00
muted_user.rb annotate models 2017-08-16 10:38:11 -04:00
new_topic_duration_site_setting.rb
notification_level_when_replying_site_setting.rb FEATURE: Add normal as a preference for topic subscription state when replying to a topic 2017-04-20 22:33:10 -04:00
notification.rb Require dependency otherwise it causes Sidekiq to lock up in development. 2017-09-25 13:48:59 +08:00
oauth2_user_info.rb
onceoff_log.rb
optimized_image.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
permalink.rb annotate models 2017-08-16 10:38:11 -04:00
plugin_store_row.rb
plugin_store.rb REFACTOR: Instance methods added to 'PluginStore' model for easy access (#5315) 2017-11-15 10:10:20 -05:00
post_action_type.rb FIX: Post Action Type 6 is not a notify type 2017-10-19 17:13:55 -04:00
post_action.rb FIX: Couldn't disagree with "notify moderator" flags 2017-10-30 10:52:00 -04:00
post_analyzer.rb FEATURE: escape HTML when cooking plaintext emails 2017-11-15 20:22:11 +01:00
post_custom_field.rb Update annotations. 2017-10-06 11:13:01 +08:00
post_detail.rb
post_mover.rb FIX: do not move small post actions 2017-11-23 17:25:53 +01:00
post_reply.rb
post_revision.rb
post_search_data.rb annotate models 2017-08-16 10:38:11 -04:00
post_stat.rb annotate models 2017-08-16 10:38:11 -04:00
post_timing.rb FIX: more accurate counting of posts read. Skipping to the end of a topic does not count all posts as read in user stats. 2017-11-17 16:08:46 -05:00
post_upload.rb
post.rb FIX: properly handle too large & broken images in posts 2017-11-16 15:45:07 +01:00
previous_replies_site_setting.rb
queued_post.rb Rename "Blocked" to "Silenced" 2017-11-10 14:10:27 -05:00
quoted_post.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
remote_theme.rb annotate models 2017-08-16 10:38:11 -04:00
report.rb Refactor flag types for more customization 2017-10-19 13:55:23 -04:00
s3_region_site_setting.rb add 'us-east-2' S3 region 2017-07-10 15:36:38 +02:00
scheduler_stat.rb purge scheduler_stats every 1 month instead of 3 2017-04-28 15:05:15 -07:00
screened_email.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
screened_ip_address.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
screened_url.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
search_log.rb PERF: n+1 query when fetching search_logs 2017-11-15 16:23:57 +05:30
single_sign_on_record.rb
site_setting.rb Only refresh site settings once on initialization. 2017-10-12 14:12:18 +08:00
site.rb Revert plugin js changes (#5139) 2017-09-07 15:15:29 +02:00
slug_setting.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
stylesheet_cache.rb Silence CSS logging in development - it's way too noisy 2017-08-16 10:59:56 -04:00
tag_group_membership.rb annotate models 2017-08-16 10:38:11 -04:00
tag_group.rb annotate models 2017-08-16 10:38:11 -04:00
tag_search_data.rb annotate stuff 2017-08-29 10:48:22 -04:00
tag_user.rb annotate models 2017-08-16 10:38:11 -04:00
tag.rb FEATURE: show tags in search results 2017-08-25 11:52:59 -04:00
theme_field.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
theme.rb FIX: child theme component vars not resolved in parent 2017-11-14 15:22:59 +11:00
top_lists.rb
top_menu_item.rb
top_topic.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_allowed_group.rb
topic_allowed_user.rb
topic_converter.rb FIX: topic counts after converting topic to/from public and private 2017-11-09 15:33:44 -05:00
topic_custom_field.rb
topic_embed.rb FIX: Onebox fails on encoded URL. 2017-09-26 18:34:54 +08:00
topic_featured_users.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_invite.rb
topic_link_click.rb FEATURE: allow specifying s3 config via globals 2017-10-06 16:20:01 +11:00
topic_link.rb FIX: topic link extraction shouldn't fail when the parsed URL has no path 2017-10-19 15:26:37 +02:00
topic_list.rb Revert "A safe way to create class variables in a multisite environment." 2017-09-29 11:06:12 -04:00
topic_notifier.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_participants_summary.rb
topic_poster.rb
topic_posters_summary.rb Require dependency otherwise it causes Sidekiq to lock up in development. 2017-09-25 13:48:59 +08:00
topic_search_data.rb annotate models 2017-08-16 10:38:11 -04:00
topic_tag.rb annotate models 2017-08-16 10:38:11 -04:00
topic_timer.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
topic_tracking_state.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
topic_user.rb FIX: more accurate counting of posts read. Skipping to the end of a topic does not count all posts as read in user stats. 2017-11-17 16:08:46 -05:00
topic_view_item.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic.rb FEATURE: remove the featured link by editing the topic 2017-11-22 14:53:35 -05:00
translation_override.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
trust_level_setting.rb
trust_level3_requirements.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
twitter_user_info.rb
unsubscribe_key.rb annotate models 2017-08-16 10:38:11 -04:00
upload.rb Merge branch 's3_refactor' 2017-10-09 10:27:52 +11:00
user_action.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
user_api_key.rb annotate models 2017-08-16 10:38:11 -04:00
user_archived_message.rb annotate models 2017-08-16 10:38:11 -04:00
user_auth_token_log.rb Update annotations. 2017-03-22 14:26:53 +08:00
user_auth_token.rb annotate models 2017-08-16 10:38:11 -04:00
user_avatar.rb FIX: correctly raise errors when downloads fail 2017-09-28 16:35:43 +10:00
user_badge.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
user_badges.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
user_custom_field.rb
user_email.rb Revert "Validates presence of UserEmail#user_id in AR." 2017-11-08 11:54:18 +08:00
user_export.rb annotate models 2017-08-16 10:38:11 -04:00
user_field_option.rb annotate models 2017-08-16 10:38:11 -04:00
user_field.rb annotate models 2017-08-16 10:38:11 -04:00
user_history.rb Rename "Blocked" to "Silenced" 2017-11-10 14:10:27 -05:00
user_open_id.rb
user_option.rb FEATURE: Allow the user to select a custom home page (#5268) 2017-11-10 06:45:19 +11:00
user_profile_view.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
user_profile.rb fix the regexp used to valide user's website 2017-08-02 10:19:24 +02:00
user_search_data.rb annotate models 2017-08-16 10:38:11 -04:00
user_search.rb FEATURE: user directory returns staged users during search 2017-11-19 01:17:31 +01:00
user_stat.rb FEATURE: show read time in last 60 days 2017-11-16 15:46:51 -05:00
user_summary.rb FEATURE: show topics viewed on user summary 2017-11-17 17:53:30 -05:00
user_visit.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
user_warning.rb annotate models 2017-08-16 10:38:11 -04:00
user.rb FEATURE: show read time in last 60 days 2017-11-16 15:46:51 -05:00
username_validator.rb
watched_word.rb annotate models 2017-08-16 10:38:11 -04:00
web_hook_event_type.rb
web_hook_event.rb FEATURE: Retain the latest 30 days of WebHookEvent records by default. 2017-11-08 14:11:01 +08:00
web_hook.rb annotate models 2017-08-16 10:38:11 -04:00