mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-62599 lti_gradebookservices: use correct key in get_permitted_scopes
This was missing from the revert commit, a464331db2594c, causing scopes to be empty.
This commit is contained in:
parent
5c73f6e2e5
commit
7b3297d298
@ -97,8 +97,8 @@ class gradebookservices extends service_base {
|
||||
|
||||
$scopes = array();
|
||||
$ok = !empty($this->get_type());
|
||||
if ($ok && isset($this->get_typeconfig()[$this->get_component_id()])) {
|
||||
if (!empty($setting = $this->get_typeconfig()[$this->get_component_id()])) {
|
||||
if ($ok && isset($this->get_typeconfig()['ltiservice_gradesynchronization'])) {
|
||||
if (!empty($setting = $this->get_typeconfig()['ltiservice_gradesynchronization'])) {
|
||||
$scopes[] = self::SCOPE_GRADEBOOKSERVICES_LINEITEM_READ;
|
||||
$scopes[] = self::SCOPE_GRADEBOOKSERVICES_RESULT_READ;
|
||||
$scopes[] = self::SCOPE_GRADEBOOKSERVICES_SCORE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user