SEBSERV-417 fix check full integration

This commit is contained in:
anhefti 2024-06-20 09:56:40 +02:00
parent b4907fcda9
commit 68be1b4322

View file

@ -66,7 +66,10 @@ public class MoodlePluginFullIntegration implements FullLmsIntegrationAPI {
@Override
public boolean fullIntegrationActive() {
return false;
return this.restTemplateFactory
.getRestTemplate()
.map(template -> template.getMoodlePluginVersion() == MoodleAPIRestTemplate.MoodlePluginVersion.V2_0)
.getOr(false);
}
@Override