mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
Convert EmailAuthBackend and LDAPAuthBackend to accept a realm.
This commit is contained in:
@@ -43,7 +43,7 @@ def is_subdomain_root_or_alias(request: HttpRequest) -> bool:
|
||||
|
||||
def user_matches_subdomain(realm_subdomain: Optional[Text], user_profile: UserProfile) -> bool:
|
||||
if realm_subdomain is None:
|
||||
return True
|
||||
return True # nocoverage # This state may no longer be possible.
|
||||
return user_profile.realm.subdomain == realm_subdomain
|
||||
|
||||
def is_root_domain_available() -> bool:
|
||||
|
||||
Reference in New Issue
Block a user