(self, domain)
return (self.is_global or
                domain == self.domain or
                self.domain_is_shared(domain))
Returns True if the given domain is authorized to use this backend.
Returns True if the given domain is authorized to use this backend.
Returns True if the given domain is authorized to use this backend .
def domain_is_authorized(self, domain):
        """
        Returns True if the given domain is authorized to use this backend.
        """
        return (self.is_global or
                domain == self.domain or
                self.domain_is_shared(domain))
def domain_is_authorized ( self , domain ) : return ( self . is_global or domain == self . domain or self . domain_is_shared ( domain ) )