Moodle
  1. Moodle
  2. MDL-6341

"Student view" locks out designers/administrators from courses not available to students

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: 1.6.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      Problem verified client-side on XP, OSX, and Linux boxes. In both IE6 and Firefox 1.5.x
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE
    • Rank:
      28394

      Description

      In classes where the availability is set as "Not available to students," turning on the student view refreshes the class homepage as expected. However, clicking on a resource, activity, or any other item on the page?including "turn student view off" button?leads to a page that says "This course is currently unavailable to students" and has a "Continue" button that leads back to the user's home-page, still with the student view and student permissions.

      Logging out and then back in solves the problem. Both designers and administrators are affected by this problem.

        Issue Links

          Activity

          Hide
          Gustav W Delius added a comment -

          Our lecturers use the student view button particularly often in courses that are still in preparation and therefore not yet visible to students. Therefore this bug is particularly annoying to them because they can't get out of student view without logging out and back in.

          Show
          Gustav W Delius added a comment - Our lecturers use the student view button particularly often in courses that are still in preparation and therefore not yet visible to students. Therefore this bug is particularly annoying to them because they can't get out of student view without logging out and back in.
          Hide
          Gustav W Delius added a comment -

          I fixed this by adding an extra optional argument $ignorestudentview to isteacher() and using this in require_login().

          Show
          Gustav W Delius added a comment - I fixed this by adding an extra optional argument $ignorestudentview to isteacher() and using this in require_login().
          Hide
          Gustav W Delius added a comment -

          I did not check whether this bug is also present in Moodle 1.7. With the new roles system the student view button probably works completely differently. Perhaps someone from the great new testing team can check. Thanks.

          Show
          Gustav W Delius added a comment - I did not check whether this bug is also present in Moodle 1.7. With the new roles system the student view button probably works completely differently. Perhaps someone from the great new testing team can check. Thanks.
          Hide
          Stephen Bourget added a comment -

          Tested using the Nightly CVS build of Moodle_Stable.

          Marking the issue as closed

          -Steve

          Show
          Stephen Bourget added a comment - Tested using the Nightly CVS build of Moodle_Stable. Marking the issue as closed -Steve

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: