CoursePress Pro Bug - Prerequisite Course check fails

I set a course to have a prerequisite class. When setting up a demo user to test, I found that my course that had a prerequisite was still showing "Sign Up" instead of "Prerequisite Required". I looked in the class.shortcode.php file and found that the check occurs if a student is logged in.

} elseif ( 'prerequisite' == $course->enroll_type ) {
// PREREQUISITE CODE HERE
$button .= '<span class="apply-button apply-button-prerequisite ' . $class . '">' . $prerequisite_text . '</span>';
// cp_write_log( 'TWELVE');
}

I copied the code and placed it between "Four" and "Five" in the first part that begins checking as a hotfix and everything seems to be working great now.