Change Release::getIdFromUidCid($user_id, $course_id) to
getIdFromUserId($user_id)