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

Teacher unable view some hidden activities by switching role to student

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE

      Description

      In the activities types Feedback, Forum, Glossary and Survey
      there is an explicit check for module visibility. It is not needed if require_login() is called properly indicating the $cm.

      As a result the activities are not displayed when teacher views them switching the role to student. He sees "Sorry, this activity is currently hidden".

      Replication steps:

      1. Log in as a teacher/admin.
      2. Navigate to a course containing a Feedback, Forum, Glossary or Survey module (or create one).
      3. Hide the activity.
      4. Go to the activity.
      5. Click Administration > Switch role to... > Student

      Expected result: The activity page should be shown as would be to a student, but not hidden.

      Actual result: The activity states "Sorry, this activity is currently hidden".

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              marina Marina Glancy
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: