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

theme_boost: Switch role feature can be made much faster

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.2
    • Component/s: Themes
    • Labels:
    • Testing Instructions:
      Hide

      In boost and clean.

      TEST 1
      1 login as admin
      Go to site home page and choose "Switch role to..." from the user menu.
      Choose a role.
      Verify you were returned to site home page and your user menu lists the role you have assumed.
      Verify you can return to your normal role by choosing this option in the user menu.

      Repeat "TEST 1" in a specific course.
      Verify when the assumed role only applies for the course it was added.
      Verify if I was in an activity, after switching roles I go straight back to the activity.

      Repeat "TEST 1" as an editing teacher in a course.

      Login as a student
      Verify you have no option to switch roles in the user menu but nothing is broken.

      Show
      In boost and clean. TEST 1 1 login as admin Go to site home page and choose "Switch role to..." from the user menu. Choose a role. Verify you were returned to site home page and your user menu lists the role you have assumed. Verify you can return to your normal role by choosing this option in the user menu. Repeat "TEST 1" in a specific course. Verify when the assumed role only applies for the course it was added. Verify if I was in an activity, after switching roles I go straight back to the activity. Repeat "TEST 1" as an editing teacher in a course. Login as a student Verify you have no option to switch roles in the user menu but nothing is broken.
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57001-master

      Description

      Currently in Boost without blocks, switchrole has been knobbled somewhat.

      When using blocks (eg non Boost), you can switch to a role on any page via the admin block. The role is changed and you are bounced back to the same page with the new role. This is great for quick previews of anything in the course.

      Without using the admin block, you need at least six clicks to

      • go to course page
      • select course admin settings menu
      • go to switch roles tab
      • select role and save
      • go back to course page
      • go back to the page you were on

      Switching BACK to the original role is still nice and easy - you use the last item in the user menu.

      I propose that we add a permanent item to the user menu for teachers called "Switch to another role..." which takes you to /course/switchrole.php which explains role switching and has a list of role buttons. Clicking on any one will immediately take you back to the original page you were on with the new role.

        Balsamiq Wireframes

          Attachments

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  5/Dec/16