def is_user_registered(self, user_id, hackathon):
    if (user_id == ReservedUser.DefaultUserID):
        return True
    if self.hackathon_manager.validate_admin_privilege(user_id, hackathon.id):
        return True
    reg = self.get_registration_by_user_and_hackathon(user_id, hackathon.id)
    if (reg is not None):
        return ((reg.status == RGStatus.AUTO_PASSED) or (reg.status == RGStatus.AUDIT_PASSED))
    return False
def is_user_registered(self, user_id, hackathon):
    if (user_id == ReservedUser.DefaultUserID):
        return True
    if self.hackathon_manager.validate_admin_privilege(user_id, hackathon.id):
        return True
    reg = self.get_registration_by_user_and_hackathon(user_id, hackathon.id)
    if (reg is not None):
        return ((reg.status == RGStatus.AUTO_PASSED) or (reg.status == RGStatus.AUDIT_PASSED))
    return False