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

When activity is restricted and student follows URL Moodle should display why it is restricted

XMLWordPrintable

    • MOODLE_33_STABLE
    • MOODLE_32_STABLE, MOODLE_33_STABLE
    • wip-MDL-59411-master
    • Hide

      Master, 33, and 32

      1. Create several activities in the course
        1. with access restriction set to still show the activity to students that don't meet the restriction (the little eye next to the restriction should be open)
        2. with access restriction set to hide the activity from students that don't meet the restriction (the little eye next to the restriction should be closed)
        3. hidden (create activity and then view the course (with editing turned on) and click the edit dropdown for the activity > hide)
        4. available
      2. Create a label and add links to all four activities
      3. Open course page as a student, you should see activities (1) and (4). Activity (4) will have a link and activity (1) will have an explanation why access is restricted and no link
      4. Follow the links from the label; following link to (4) will display an activity (no changes there). Following any other link will display error message.
      5. when following links to (2) and (3) the "activity is hidden" should be displayed and no activity name
      6. when following link to (1) the message with activity name and information about access restriction should be displayed

      Master and 33 (Stealth activities are not available in 32)

      1. as a teacher enable stealth activities and make activity (1) "stealth" (available but not displayed on a course page)
      2. as a student you now should not be able to see the activity (1) on the course page.
      3. following the link from the label should, however, give the activity name and the access restriction information
      Show
      Master, 33, and 32 Create several activities in the course with access restriction set to still show the activity to students that don't meet the restriction (the little eye next to the restriction should be open ) with access restriction set to hide the activity from students that don't meet the restriction (the little eye next to the restriction should be closed ) hidden (create activity and then view the course (with editing turned on) and click the edit dropdown for the activity > hide) available Create a label and add links to all four activities Open course page as a student, you should see activities (1) and (4). Activity (4) will have a link and activity (1) will have an explanation why access is restricted and no link Follow the links from the label; following link to (4) will display an activity (no changes there). Following any other link will display error message. when following links to (2) and (3) the "activity is hidden" should be displayed and no activity name when following link to (1) the message with activity name and information about access restriction should be displayed Master and 33 (Stealth activities are not available in 32) as a teacher enable stealth activities and make activity (1) "stealth" (available but not displayed on a course page) as a student you now should not be able to see the activity (1) on the course page. following the link from the label should, however, give the activity name and the access restriction information

      This was raised on the forum
      https://moodle.org/mod/forum/discuss.php?d=353131#p1427834

      If activity has access restriction and the access restriction message is not hidden from the course page, access restriction is still not shown to the student if they try to access activity by URL

      This is how the activity looks for the student on the course page:

      This is what they see if they follow URL directly (URL may be inserted by teachers in the text somewhere):

      This has become more important in Moodle 3.3 with the introduction of stealth activities and removing "orphaned sections" functionality

      If the user clicks on the label containing the cert icon too early, they are brought to the section and see the access restrictions and the reason they can't download it yet. If we linked to the cert directly, users would just see a message that this activity is hidden and no explanation as to why they can't get their cert.

            marina Marina Glancy
            marina Marina Glancy
            Andrew Lyons Andrew Lyons
            David Monllaó David Monllaó
            Ryan Wyllie Ryan Wyllie
            Votes:
            1 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.