zappyzep/backend/src/staff.ts

8 lines
179 B
TypeScript

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