Admin had created various courses.This all courses will be listed in bbpress as “checkbox (meta box)” in create New – “New Forum” form.
Now admin/teacher can select the course which he wanted to attach to this forum.
for eg.Admin has created for “Class 7” & “Class 8” in Namaste; LMS.
now admin will create new forums “Class 7” & “Class 8” and attached to “Class 7” & “Class 8” course respectively.So this forum is restricted to
1.Class 7 Course – Class 7 Forum
2.Class 8 Course – Class 8 Forum
………
n. Class Z Course – Class Z Forum So student is restricted to particular forum only which was assigned by admin/teacher.
For your reference I have provided “Paidmembership Pro” link.In which only members of particular level can access assigned (by admin) that forum only.So forum is restricted to a particular membership level which is assigned by admin. Member can not access every forum(s).
Paid-Membership Pro :
** https://www.ads-software.com/plugins/pmpro-bbpress/
Description of plug : “The bbPress Add On for Paid Memberships Pro adds a “Require Membership” meta box to the “Edit Forum” page, allowing you to easily toggle the membership level(s) that can access the forum. “
** https://www.ads-software.com/plugins/pmpro-bbpress/screenshots/
( screenshot)