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

IMS roles cannot be retrieved without a current user

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Inactive
    • Icon: Minor Minor
    • None
    • 2.7.2
    • LTI External tool
    • MOODLE_27_STABLE
    • MDL-47525-master
    • 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.

      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.

            adrian.r.fish@gmail.com Adrian Fish
            adrian.r.fish@gmail.com Adrian Fish
            Andrew Lyons Andrew Lyons
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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