Overview
Allow user to move a collection from their personal account to an organization.
Background
Existing Write.as users who now have access to organizations may be interested in converting their blog to a multi-user publication.
Implementation
Add a new endpoint that sets owner_id = 0, org_owner_id = {org.ID} after checking:
- Organization has shared collection allowance
- User can create a shared collection on the organization
Endpoint might be:
POST /api/organizations/{organization}/collections/claim
Design
Near the bottom of the blog Customize page, add a "Move to team..." link. This should bring up a modal that explains the situation and supplies a submit button.
For now, only show the link if user belongs to a team. In the future, we could make this available to everyone and lead people through the Teams upgrade flow.