Prevent code from using email domain to determine realm when subdomains.

Also removes the intermediate step of going through Realm.domain in the
non-subdomains case. Part of a larger project to remove Realm.domain
entirely.
This commit is contained in:
Rishi Gupta
2016-11-08 17:40:54 -08:00
committed by Tim Abbott
parent 411a7b08e0
commit c1713c9659
9 changed files with 46 additions and 41 deletions

View File

@@ -31,7 +31,6 @@ from zerver.models import (
get_realm,
get_stream,
get_user_profile_by_email,
resolve_email_to_domain,
Client,
Message,
Realm,