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

IMS roles cannot be retrieved without a current user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7.2
    • Fix Version/s: None
    • Labels:
    • Testing Instructions:
      Hide

      Just have a look at the code and make sure I haven't done anything stupid. lti_get_ims_role is only called once, from locallib itself, so I can't see any issues coming out of my change.

      Show
      Just have a look at the code and make sure I haven't done anything stupid. lti_get_ims_role is only called once, from locallib itself, so I can't see any issues coming out of my change.
    • Affected Branches:
      MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-47525-master

      Description

      IMS roles cannot be retrieved without a current user. lti_get_ims_role in locallib takes a user parameter but never passes it to has_capability. has_capability then defaults to the current user and there are scenarios where there will be no current user, ie: in callbacks from TPs.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              adrian.r.fish@gmail.com Adrian Fish
              Reporter:
              adrian.r.fish@gmail.com Adrian Fish
              Peer reviewer:
              Andrew Lyons Andrew Lyons
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: