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

Details

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

    Description

      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... (

      Attachments

        Issue Links

          Activity

            People

              lazyfish Yu Zhang
              saint-georges Arnaud saint-Georges
              Nobody Nobody
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Jun/07