dashboard/api: add support for Zeppelin staff members; add ViewGuild permission; code cleanup
This commit is contained in:
parent
7e60950900
commit
d03d729438
13 changed files with 175 additions and 75 deletions
6
backend/src/staff.ts
Normal file
6
backend/src/staff.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
/**
|
||||
* Zeppelin staff have full access to the dashboard
|
||||
*/
|
||||
export function isStaff(userId: string) {
|
||||
return (process.env.STAFF ?? "").split(",").includes(userId);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue