def allowed_to_forward(self, payload):
        allowed_case_type = not self.white_listed_case_types or payload.type in self.white_listed_case_types
        allowed_user = self.payload_user_id(payload) not in self.black_listed_users
        return allowed_case_type and allowed_user
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/repeaters/models.py/CaseRepeater.allowed_to_forward/original