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 Using the new Shadcn Sidebar in Makerkit

Using the new Shadcn Sidebar in Makerkit

·3 min read
We have updated the sidebar to use the new Shadcn Sidebar. It's a new design and a more powerful component. In this post, we will learn how to use the new Shadcn Sidebar in Makerkit.
Cover Image for Upgrading to Next.js 15

Upgrading to Next.js 15

·11 min read
Preparing the migration to Next.js 15. In this post, we will cover the changes that you need to make to your project to upgrade to Next.js 15, and how Makerkit will approach the migration.
Cover Image for Announcing the Analytics Package for Makerkit

Announcing the Analytics Package for Makerkit

·5 min read
We're excited to announce the launch of the Analytics Package for Makerkit, enabling you to track user interactions and monitor your users behavior.
Cover Image for Introducing the Roadmap Plugin: Track and Share Your Project's Progress

Introducing the Roadmap Plugin: Track and Share Your Project's Progress

·3 min read
The Roadmap Plugin allows you to create a roadmap for your project and display it on your website. Your users can see what features are planned, in progress, and completed and suggest new features or comment on existing ones.
Cover Image for Introducing Marketing Components: Crafting Stunning Landing Pages with Ease

Introducing Marketing Components: Crafting Stunning Landing Pages with Ease

·5 min read
We're excited to announce the release of Marketing Components, a collection of reusable UI components for marketing websites and landing pages.
Cover Image for Introducing the Testimonial Plugin for Makerkit

Introducing the Testimonial Plugin for Makerkit

·4 min read
Introducing a new plugin to add testimonials to your app with ease