acc. draft mode, take care of ADMIN role or on own listings

This commit is contained in:
2024-05-28 13:15:31 -05:00
parent 44acbcd4d0
commit 902ab9caed
4 changed files with 41 additions and 14 deletions

View File

@@ -198,6 +198,9 @@ export function isEmpty(value: any): boolean {
return false;
}
export function emailToDirName(email: string): string {
if (email === undefined || email === null) {
return null;
}
// Entferne ungültige Zeichen und ersetze sie durch Unterstriche
const sanitizedEmail = email.replace(/[^a-zA-Z0-9_-]/g, '_');