There was an error while loading. Please reload this page.
1 parent 3d53d3a commit 33935a0Copy full SHA for 33935a0
1 file changed
lib/private/OCM/OCMDiscoveryService.php
@@ -247,6 +247,15 @@ public function getLocalOCMProvider(bool $fullDetails = true): IOCMProvider {
247
$event = new ResourceTypeRegisterEvent($provider);
248
$this->eventDispatcher->dispatchTyped($event);
249
250
+ $apiVersion = $this->config->getSystemValueString('sharing.federation.ocm.apiVersion');
251
+ if ($apiVersion !== '') {
252
+ $provider->setApiVersion($apiVersion);
253
+ $provider->removeVersion();
254
+ }
255
+ if ($this->config->getSystemValueBool('sharing.federation.ocm.removePublicKey')) {
256
+ $provider->removePublicKey();
257
258
+
259
$this->localProvider = $provider;
260
return $provider;
261
}
0 commit comments