zappyzep/backend/src/staff.ts

7 lines
168 B
TypeScript
Raw Normal View History

/**
* Zeppelin staff have full access to the dashboard
*/
export function isStaff(userId: string) {
return (process.env.STAFF ?? "").split(",").includes(userId);
}