def METHOD_NAME(self, user):
    if user == self.owner:
        return True
    elif self.visibility == self.PUBLIC:
        return True
    elif self.visibility == self.SHARED and user.is_authenticated:
        return self.shared_emails.filter(email=user.email).exists()
    return False