mirror of
https://github.com/discourse/discourse.git
synced 2026-08-05 13:59:03 +08:00
**Previously**, getting a second admin onto a site took many steps: create an invite, wait for the person to sign up, find their profile, grant admin, and confirm via email. **In this update**, a redesigned invite modal (gated behind the `enable_admin_invites` upcoming change) lets admins invite someone as an admin by email in one step. The invitee becomes a moderator on signup and an admin once the inviter confirms via the existing admin confirmation email. The admin onboarding panel's "Invite collaborators" step now opens this flow with the admin option preselected. | Invite members | Advanced options | Email delivery | | --- | --- | --- | |  |  |  | | Invite admins | Advanced options | Invite sent | | --- | --- | --- | |  |  |  | | Link created | Email invitation sent | Onboarding panel | | --- | --- | --- | |  |  |  |
6 lines
179 B
Ruby
Vendored
6 lines
179 B
Ruby
Vendored
# frozen_string_literal: true
|
|
class AddAdminToInvites < ActiveRecord::Migration[8.0]
|
|
def change
|
|
add_column :invites, :admin, :boolean, default: false, null: false
|
|
end
|
|
end
|