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

theme_boost: Switch role feature can be made much faster

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.2
    • 3.2
    • Themes
    • MOODLE_32_STABLE
    • MOODLE_32_STABLE
    • MDL-57001-master
    • 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.

      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.

            damyon Damyon Wiese
            dougiamas Martin Dougiamas
            John Okely John Okely
            David Monllaó David Monllaó
            Ryan Wyllie Ryan Wyllie
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

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