Skip to content

Commit

Permalink
Whitelist Austin for dev access
Browse files Browse the repository at this point in the history
  • Loading branch information
xmliszt committed Dec 23, 2023
1 parent 1e35a83 commit edef69f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/admin-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import IUser from './types/user.type';

export class AdminManager {
static WHITELIST_UIDS = [
'BnlcfMNIvrf2XCxY73O5KXmYNkI3', // production
'aynNbQcI5rV2UxXVaRRW34K3eaH2', // preview
'BnlcfMNIvrf2XCxY73O5KXmYNkI3', // production - Yuxuan
'aynNbQcI5rV2UxXVaRRW34K3eaH2', // preview - Yuxuan
'xAlLvLRvY7NHtRr5GkL6TxIV0Vu1', // production - Austin
'd57nt5xyZhX4S4f1sOFlo5WbAlX2', // preview - Austin
];

static checkIsAdmin(user: IUser | null | undefined): boolean {
console.log(user);
if (user?.uid) {
return this.WHITELIST_UIDS.includes(user.uid);
}
Expand Down

0 comments on commit edef69f

Please sign in to comment.