kyc user and upload partial update encrypt nik and picture
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/** Daftar email admin (comma-separated, lowercase). */
|
||||
function adminEmails(): string[] {
|
||||
return (process.env.ADMIN_EMAILS ?? "")
|
||||
.split(",")
|
||||
.map((e) => e.trim().toLowerCase())
|
||||
.filter(Boolean);
|
||||
}
|
||||
|
||||
export function isAdminEmail(email: string | null | undefined): boolean {
|
||||
if (!email) return false;
|
||||
return adminEmails().includes(email.toLowerCase());
|
||||
}
|
||||
Reference in New Issue
Block a user