MDL-76821 enrol_lti: prevent legacy launches via upgraded enrolment
commitb3feea921dccaa4036f4874ad506b5675f1e8b30
authorJake Dallimore <jake@moodle.com>
Fri, 5 May 2023 06:24:15 +0000 (5 14:24 +0800)
committerJake Dallimore <jake@moodle.com>
Fri, 5 May 2023 09:11:09 +0000 (5 17:11 +0800)
tree4d45c222f78f5443e8cd96d06d8829d16298658d
parent22c346831ebd9151d3a8baf28b1be56be69a807b
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