This function seems to display all courses - even courses the user should not be able to see and is extremely in-efficient - you need to rework this function so that it does not make so many db calls. - think about an example where a site might have 10,000 courses.
This function seems to display all courses - even courses the user should not be able to see and is extremely in-efficient - you need to rework this function so that it does not make so many db calls. - think about an example where a site might have 10,000 courses.