diff --git a/app.py b/app.py index ed4f12a..43d1b4f 100644 --- a/app.py +++ b/app.py @@ -245,7 +245,7 @@ def dashboard_export_xls(): is_admin = profile.get("is_admin") case_email = None - if not is_admin and not profile.get('case_email'): + if not is_admin and (not profile.get('case_email') and not profile.get('case_domain_email')): return redirect(url_for("welcome")) # Get all projects without pagination