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

Add new capability to view the list of non-hidden courses

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Login as admin
      2. Access to "Site administration | Users | Permissions | Define roles" and remove capabilities 'moodle/course:browse' from Authenticated user role and from the Guest role
      3. Access to the site home page and add the "Courses" block to all the users
      4. Access to "Site administration | Front page settings | Edit settings" and enable all kinds of course listings on the site home page
      5. Create some course categories and also some courses from "Site administration | Courses | Manage courses and categories". Add some of these courses to the new categories created
      6. For some of these courses enable self enrolment and for some others, guest access
      7. Make sure guests/users are not able to access course list but can go into the courses they are enrolled into
      8. Make sure they are not able to self-enrol and use guest access
      9. Access to "Site administration | Users | Permissions | Define roles" and create a role with a single cap allowed 'moodle/course:browse'. Make sure this role has, at least, the 'Category' checked in the 'Context types where this role may be assigned'
      10. Access to "Site administration | Courses | Manage courses and categories" and for some of the categories created in the step #5, assign the new role created to some users using the "Assign roles" option in the category cog menu
      11. Login as these users and make sure these users are able to browse only these categories on the site home page, on the "Courses" block added in the step #3 and on the /course/ page (the URL should be written directly in the browser),
      12. Make sure they are able to self-enrol in applicable courses
      13. Switch to "classic" theme and make sure that only available /enrolled courses appear in the navigation block and navigation items expand properly when you navigate inside the course, inside the section and inside the activity

      Tests for changed 'course' element:

      1. BADGES
        • Create a badge and add "Completing a set of courses" as a criterion
        • Make sure you can select courses when defining the set of courses for the criterion
        • Make sure that only courses where completion is enabled are selectable
      2. COURSE COMPLETION
        • Access to a course and enable course completion from the Course settings (`Enable completion tracking`)
        • Access to the course cog and select "Course completion"
        • Try to add courses required for completion
        • Ensure only courses with completion enabled are selectable
      3. DEVELOPMENT
        • Access to "Site administration | Development | Make JMeter test plan"
        • Make sure Test target course picker works
      Show
      Login as admin Access to "Site administration | Users | Permissions | Define roles" and remove capabilities 'moodle/course:browse' from Authenticated user role and from the Guest role Access to the site home page and add the "Courses" block to all the users Access to "Site administration | Front page settings | Edit settings" and enable all kinds of course listings on the site home page Create some course categories and also some courses from "Site administration | Courses | Manage courses and categories". Add some of these courses to the new categories created For some of these courses enable self enrolment and for some others, guest access Make sure guests/users are not able to access course list but can go into the courses they are enrolled into Make sure they are not able to self-enrol and use guest access Access to "Site administration | Users | Permissions | Define roles" and create a role with a single cap allowed 'moodle/course:browse'. Make sure this role has, at least, the 'Category' checked in the 'Context types where this role may be assigned' Access to "Site administration | Courses | Manage courses and categories" and for some of the categories created in the step #5, assign the new role created to some users using the "Assign roles" option in the category cog menu Login as these users and make sure these users are able to browse only these categories on the site home page, on the "Courses" block added in the step #3 and on the /course/ page (the URL should be written directly in the browser), Make sure they are able to self-enrol in applicable courses Switch to "classic" theme and make sure that only available /enrolled courses appear in the navigation block and navigation items expand properly when you navigate inside the course, inside the section and inside the activity Tests for changed 'course' element: BADGES Create a badge and add "Completing a set of courses" as a criterion Make sure you can select courses when defining the set of courses for the criterion Make sure that only courses where completion is enabled are selectable COURSE COMPLETION Access to a course and enable course completion from the Course settings (`Enable completion tracking`) Access to the course cog and select "Course completion" Try to add courses required for completion Ensure only courses with completion enabled are selectable DEVELOPMENT Access to "Site administration | Development | Make JMeter test plan" Make sure Test target course picker works
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull Master Branch:
      MDL-10965-master
    • Sprint:
      Workplace for Moodle 3.7

      Description

      At the moment, the list of courses is public (unless hidden course or category). I propose to introduce a capability to view the list of courses at the given site context (all courses) or only course category context.
      Any user can always view all courses (s)he is enroled to.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                15 Vote for this issue
                Watchers:
                19 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  20/May/19

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 weeks, 1 day
                  5w 1d