Migrate to Turborepo (#1251)

This commit is contained in:
Evan Song
2024-07-04 21:46:29 -07:00
committed by GitHub
parent 6fa1acc461
commit 0f2ddb452c
811 changed files with 5623 additions and 7832 deletions

11
packages/utils/users.ts Normal file
View File

@@ -0,0 +1,11 @@
// noinspection JSUnusedGlobalSymbols
export const getUserLink = (user) => {
return `/user/${user.username}`
}
export const isStaff = (user) => {
return user && STAFF_ROLES.includes(user.role)
}
export const STAFF_ROLES = ['moderator', 'admin']