mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-06 05:40:02 -06:00
16 lines
361 B
TypeScript
16 lines
361 B
TypeScript
import { TOrganizationRole } from "@formbricks/types/memberships";
|
|
|
|
export const getAccessFlags = (role?: TOrganizationRole) => {
|
|
const isOwner = role === "owner";
|
|
const isManager = role === "manager";
|
|
const isBilling = role === "billing";
|
|
const isMember = role === "member";
|
|
|
|
return {
|
|
isManager,
|
|
isOwner,
|
|
isBilling,
|
|
isMember,
|
|
};
|
|
};
|