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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.1, 1.9
    • Component/s: Roles / Access
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      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

              • Assignee:
                lazyfish Yu Zhang
                Reporter:
                saint-georges Arnaud saint-Georges
                Tester:
                Nobody
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Jun/07