discourse/spec/lib/auth
Martin Brennan 6d7abc1c85
FIX: Make sure first admin users are added to auto groups (#18494)
When a user with an email matching those inside the
DISCOURSE_DEVELOPER_EMAILS env var log in, we make
them into admin users if they are not already. This
is used when setting up the first admin user for
self-hosters, since the discourse-setup script sets
the provided admin emails into DISCOURSE_DEVELOPER_EMAILS.

The issue being fixed here is that the new admins were
not being automatically added to the staff and admins
automatic groups, which was causing issues with the site
settings that are group_list based that don't have an explicit
staff override. All we need to do is refresh the automatic
staff, admin groups when admin is granted for the user.
2022-10-06 15:16:38 +10:00
..
omniauth_strategies DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
default_current_user_provider_spec.rb FIX: Make sure first admin users are added to auto groups (#18494) 2022-10-06 15:16:38 +10:00
discord_authenticator_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
facebook_authenticator_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
github_authenticator_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
google_oauth2_authenticator_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
managed_authenticator_spec.rb Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
result_spec.rb Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
twitter_authenticator_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00