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

Loginas cleanup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8
    • Component/s: Roles / Access
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      Description

      Current loginas can non IMHO work as expected now, because you can not always override your own capabilitites in subcontext - this makes it not usable for users with some administration capability assigned at the system level

      This feature should IMO work for admins and should emulate REAL user login but without the need for password, it should not be used by ordinary teachers. Teachers should use switch role only.

      Solution:
      1/ define loginas capability in system context only
      2/ fix the code to fully switch the $USER and load all capabilities

      time needed: cca 4 hours for coding and testing

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              skodak Petr Skoda
              Tester:
              Nobody
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                31/Mar/07