SEBSERV-417 fix check full integration
This commit is contained in:
parent
b4907fcda9
commit
68be1b4322
1 changed files with 4 additions and 1 deletions
|
@ -66,7 +66,10 @@ public class MoodlePluginFullIntegration implements FullLmsIntegrationAPI {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean fullIntegrationActive() {
|
public boolean fullIntegrationActive() {
|
||||||
return false;
|
return this.restTemplateFactory
|
||||||
|
.getRestTemplate()
|
||||||
|
.map(template -> template.getMoodlePluginVersion() == MoodleAPIRestTemplate.MoodlePluginVersion.V2_0)
|
||||||
|
.getOr(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue