mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:42:02 +08:00
6d7abc1c85
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. |
||
---|---|---|
.. | ||
omniauth_strategies | ||
auth_provider.rb | ||
authenticator.rb | ||
current_user_provider.rb | ||
default_current_user_provider.rb | ||
discord_authenticator.rb | ||
facebook_authenticator.rb | ||
github_authenticator.rb | ||
google_oauth2_authenticator.rb | ||
managed_authenticator.rb | ||
result.rb | ||
twitter_authenticator.rb |