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

LTI Consumer should send more user roles

    XMLWordPrintable

Details

    • MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE

    Description

      Current implementation makes bad assumptions to try to determine roles that are sent to LTI Tool Provider, like this one:

       if (has_capability('moodle/course:manageactivities', $coursecontext)) {
           array_push($roles, 'Instructor');
       } else {
           array_push($roles, 'Learner');
       }
      

      A better way to deal with this would use "role archetypes" and hardcode a relation between "archetype" and the corresponding "lti role".

      Also I believe that "every role" should be passed, but prepending a Moodle's specific namespace. LTI specification doesn't prohibit us from using custom roles.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              brodock Gabriel Mazetto
              Adrian Greeve Adrian Greeve
              Jake Dallimore, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              8 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: