Note: You are currently viewing documentation for Moodle 3.8. Up-to-date documentation for the latest stable version of Moodle may be available here: Course list viewer role.

Course list viewer role

From MoodleDocs
Revision as of 12:49, 14 May 2019 by Mary Cooch (talk | contribs) (WIP)

The Course list viewer role may be used to restrict or allow lists of courses to be viewed by selected users.

By default, the Authenticated user role can see the list of all courses because the capability moodle/category:viewcourselist is allowed.

If the capability is removed globally from the authenticated user, then the Course list viewer role may be assigned to users allowed to view courses in a certain category/certain categories.

Role set up

  1. From 'Site administration / Users / Permissions / Define roles', edit the Authenticated user role to prevent the capability moodle/category:viewcourselist
  2. From Site administration / Users / Permissions / Define roles'and click the "Add a new role" button.
  3. For archetype role choose "No role."
  4. Give the role a short name (such as "Course list viewer", but it can be anything appropriate.
  5. Give the role a custom full name (such as "Course list viewer", but it can be anything appropriate.
  6. To allow users to view courses in all categories, check the "System" context.
  7. To allow users to view courses in specific categories, check the "Category" context