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

Lesson should have a capability mod/lesson:view

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2
    • 1.9, 3.1.1
    • Lesson
    • MOODLE_19_STABLE, MOODLE_31_STABLE
    • MOODLE_32_STABLE
    • MDL-14448_m32v1
    • Easy
    • Hide

      Manual testing:
      This requires a course with at least 2 student users.

      1. Create a lesson activity with 1 content page and a linked media file
      2. Override the permissions on the lesson activity so the lesson:view permission is prohibited for student2
      3. Have student1 view the lesson page
      4. Have student1 view the media file (make note of the URL as you will need this later)
      5. Verify the lesson activity does not appear to student 2
      6. Have student2 try to directly access the media file (by using the URL you noted earlier). Verify that they do not have access.

      Automated testing:

      1. Run behat for mod_lesson
      2. Run phpunit for mod_lesson
      Show
      Manual testing: This requires a course with at least 2 student users. Create a lesson activity with 1 content page and a linked media file Override the permissions on the lesson activity so the lesson:view permission is prohibited for student2 Have student1 view the lesson page Have student1 view the media file (make note of the URL as you will need this later) Verify the lesson activity does not appear to student 2 Have student2 try to directly access the media file (by using the URL you noted earlier). Verify that they do not have access. Automated testing: Run behat for mod_lesson Run phpunit for mod_lesson

      Lesson currently has only two capabilities: edit and manage. For consistency with other activities, it should also have mod/lesson:view. Without a view capability, Lessons cannot be hidden from guests in courses that permit guest access (see http://moodle.org/mod/forum/discuss.php?d=95325)

            sbourget Stephen Bourget
            jisner John Isner
            Ryan Wyllie Ryan Wyllie
            Dan Poltawski Dan Poltawski
            Jake Dallimore Jake Dallimore
            Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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