Standalone Course Forums with Access Restrictions

"It would be great to have access restrictions for standalone forums. The idea is to have a forum for each course (LearnDash) that only members that are enrolled in the particular course have access to. So someone enrolled in course X would only see and have access to forum X