from users.constants import ALLOWED_VENDOR_STAR_EMAIL_DOMAINS def is_employee_email(email: str) -> bool: """Determine if an email belongs to an employee based on its domain.""" email_domain = email.split('@')[-1].lower() return email_domain in ALLOWED_VENDOR_STAR_EMAIL_DOMAINS