f59c0a72c6
* limit fragment cleanup * be updated * model checks in FE * tests fix * fakes util fix
6 lines
276 B
TypeScript
6 lines
276 B
TypeScript
import { Roles } from '@speckle/shared'
|
|
import type { MaybeNullOrUndefined } from '@speckle/shared'
|
|
|
|
export const canInviteToProject = (project: { role?: MaybeNullOrUndefined<string> }) =>
|
|
([Roles.Stream.Owner] as Array<MaybeNullOrUndefined<string>>).includes(project.role)
|