MDL-57742 core_lib: Make tool_consumer_instance_guid optional

In the specification, tool_consumer_instance_guid is only listed
as recommended. However, the library was requiring it.

https://www.imsglobal.org/specs/ltiv2p0/implementation-guide#toc-42
This commit is contained in:
David Balch
2018-05-28 13:13:55 +08:00
committed by Mark Nelson
parent 9cf74e2636
commit 2d8ba1ea5e
@@ -808,11 +808,6 @@ EOD;
if (!$this->ok) {
$this->reason = 'Request is from an invalid tool consumer.';
}
} else {
$this->ok = isset($_POST['tool_consumer_instance_guid']);
if (!$this->ok) {
$this->reason = 'A tool consumer GUID must be included in the launch request.';
}
}
}
if ($this->ok) {