File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
tests/unittest/middleware Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,5 +111,5 @@ def is_user_email_restricted() -> bool:
111111 if not isinstance (request_context , RequestContext ):
112112 return True # Default to restricted
113113 email = get_request_context ().user_email
114- unrestricted_domains = ["@ mobilitydata.org" ]
114+ unrestricted_domains = ["mobilitydata.org" ]
115115 return not email or not any (email .endswith (f"@{ domain } " ) for domain in unrestricted_domains )
Original file line number Diff line number Diff line change @@ -95,4 +95,4 @@ def test_is_user_email_restricted(self):
9595 ]
9696 request_context = RequestContext (scope = scope_instance )
9797 _request_context .set (request_context )
98- self .assertTrue (is_user_email_restricted ())
98+ self .assertFalse (is_user_email_restricted ())
You can’t perform that action at this time.
0 commit comments