v0.2.0: Transferring Ownership of an organization

The version 0.2.0 adds the ability to transfer the ownership of an organization to another member

2 min read
Cover Image for v0.2.0: Transferring Ownership of an organization

The newly released version 0.2.0 adds the ability for the owners of an organization to transfer ownership to another member of the organization.

Check out the video below for a quick demo:

Loading video...

When the owner of an organization transfers the ownership to another member, the owner's account will automatically be turned into an Admin account.

Furthermore, I strengthened some checks around the ability to remove members from an organization and update a member's role:

function assertUserCanUpdateMember(params: { organization: Organization; currentUserId: string; targetUserId: string; }) { const members = params.organization.members; const currentUser = members[params.currentUserId]; const targetUser = members[params.targetUserId]; if (!targetUser) { return throwNotFoundException(`Target member was not found`); } if (!currentUser) { return throwNotFoundException(`Current member was not found`); } if (currentUser.role <= targetUser.role) { return throwUnauthorizedException( `Current member does not have a greater role than target member` ); } }

The function above can be reused when a user is performing an action that affects another user.

Generally, we use user roles hierarchically, which means if a role is equal to or smaller than another, then it cannot perform an action that affects this user's permissions.

To update your repository, run the following command:

git pull upstream main

If you encounter too many conflicts while updating, please feel free to reach out!



Read more about Changelog

Cover Image for Introducing Makerkit Turbo: faster, simpler and more powerful SaaS Boilerplate

Introducing Makerkit Turbo: faster, simpler and more powerful SaaS Boilerplate

4 min read
I am excited to announce Makerkit Turbo - the next generation of our SaaS boilerplate. It's a tremendous upgrade over the previous version, with a focus on speed, simplicity, and power.
Cover Image for Announcing the AI Blog Writer SaaS Template

Announcing the AI Blog Writer SaaS Template

3 min read
We're excited to announce the launch of our latest SaaS template, the AI Blog Writer app template. This template is a great starting point for building a product to write SEO optimized blog posts using AI.
Cover Image for Announcing the AI Chat with PDF SaaS Template

Announcing the AI Chat with PDF SaaS Template

3 min read
We're excited to announce the launch of our latest SaaS template, the Chat with PDF app template. This template is a great starting point for building a product that allows your customers to create chatbots that can answer questions and search through PDF documents.
Cover Image for Announcing the AI Chatbot SaaS Template

Announcing the AI Chatbot SaaS Template

3 min read
We're excited to announce the launch of our latest SaaS template, the AI Chatbot SaaS Template. This template is a great starting point for building a customer support chatbot SaaS product.
Cover Image for Announcing Premium Codebase Access

Announcing Premium Codebase Access

4 min read
We are excited to announce that we are now offering Premium Codebase Access to all our users on the Teams Plan.
Cover Image for Announcing the new Onboarding Flow!

Announcing the new Onboarding Flow!

2 min read
The latest update to the SaaS Starter Kits is here! This update includes changes to the Onboarding Flow after sign-up.