5 lines
176 B
TypeScript
5 lines
176 B
TypeScript
import type { User } from '@documenso/prisma/client';
|
|
import { Role } from '@documenso/prisma/client';
|
|
|
|
export const isAdmin = (user: User) => user.roles.includes(Role.ADMIN);
|