Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-9238

Users assigned to a role at category-level don't view the courses of the subcategory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.1, 1.9
    • 1.8
    • Roles / Access
    • None
    • MOODLE_18_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

      Users assigned to a role at category-level don't view the courses of the subcategory in "My Courses" block, user profile, etc.

      For instance:

      • a category "Cat1" has two subcategories "Cat11" and "Cat12"
      • the category "Cat1" has one course "CourseA"
      • the subcategory "Cat11" has one course "CourseB"
      • the user is assigned as a student to the category "Cat1"

      -> he can access as a student to the course "CourseA"
      -> he can access as a student to the course "CourseB"
      -> BUT he doesn't view the course "CourseB" in his "My courses" blocks

      The responsible function is the datalib function get_my_courses() which doesn't select suchlike courses.
      But it is not easy to correct... (

            lazyfish Yu Zhang
            saint-georges Arnaud saint-Georges (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.