MDL-76821 enrol_lti: prevent legacy launches via upgraded enrolment
authorJake Dallimore <jake@moodle.com>
Fri, 5 May 2023 06:24:15 +0000 (14:24 +0800)
committerJake Dallimore <jake@moodle.com>
Fri, 5 May 2023 09:12:03 +0000 (17:12 +0800)
commit660ea3df568ee9c03d6e4afa5a009de8f5c5fd8a
tree1eaef195d93f0b1f1de6b549b9479aae6592f65f
parentae736cca94d7094472213e7d21d4b91cf6a269a9
MDL-76821 enrol_lti: prevent legacy launches via upgraded enrolment

If the enrolment instance (the 'published resource') has been upgraded
from LTI 1.1/2.0 to LTI 1.3 (i.e. a new instance was not created),
prevent legacy launches which may occur from old resource links. Only
LTI Advantage launches should be permitted through the method.
enrol/lti/lang/en/enrol_lti.php
enrol/lti/tool.php