diff --git a/src/registrar/context_processors.py b/src/registrar/context_processors.py index bffa6d5c4..861a4e701 100644 --- a/src/registrar/context_processors.py +++ b/src/registrar/context_processors.py @@ -50,6 +50,14 @@ def org_user_status(request): } +def add_path_to_context(request): + return {"path": getattr(request, "path", None)} + + +def add_has_profile_feature_flag_to_context(request): + return {"has_profile_feature_flag": flag_is_active(request, "profile_feature")} + + def portfolio_permissions(request): """Make portfolio permissions for the request user available in global context""" try: diff --git a/src/registrar/tests/test_reports.py b/src/registrar/tests/test_reports.py index 5b2112f4f..6b8cb8882 100644 --- a/src/registrar/tests/test_reports.py +++ b/src/registrar/tests/test_reports.py @@ -314,7 +314,7 @@ class ExportDataTest(MockDbForIndividualTests, MockEppLib): self.assertEqual(csv_content, expected_content) @less_console_noise_decorator - @override_flag("profile_feature", active=True) + @override_flag("organization_feature", active=True) def test_domain_data_type_user_with_portfolio(self): """Tests DomainDataTypeUser export with portfolio permissions"""