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

Add body class when logged in as other role

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 2.8
    • Component/s: Navigation
    • Labels:
    • Testing Instructions:
      Hide

      It doesn't matter what theme you test this on.

      1. Create a new Moodle instance using a web install (i.e. not using MDK).
        • Verify that no errors are tripped.
      2. Log in as an admin.
      3. Create and view a course.
      4. Use the administration block to switch your role to a Manager.
      5. Inspect the CSS classes applied to body
        • Verify that the class userswitchedrole is present on body.
      Show
      It doesn't matter what theme you test this on. Create a new Moodle instance using a web install (i.e. not using MDK). Verify that no errors are tripped. Log in as an admin. Create and view a course. Use the administration block to switch your role to a Manager. Inspect the CSS classes applied to body Verify that the class userswitchedrole is present on body .
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-46523-master
    • Story Points:
      3
    • Sprint:
      FRONTEND Sprint 13, FRONTEND Sprint 14

      Description

      To support work being done on MDL-45893, we need a way of telling at the DOM level when a user is viewing as another role. We already have a class added to the body telling us when we're logged in as another user; this should be fairly straightforward.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jethac Jetha Chan
              Reporter:
              jethac Jetha Chan
              Peer reviewer:
              Andrew Nicols
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Sam Hemelryk
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14