Skip to content

Commit

Permalink
Allow access to more kind of versions from the v1 endpoints
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Feb 27, 2024
1 parent d5f6ed0 commit 1a2e603
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Middleware/ClientHasCapabilityMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ public function beforeController($controller, $methodName): void {
return;
}

if ($decodedMetadata['metadata']['version'] === 1.2) {
return;
}

throw new OCSForbiddenException('Client version cannot handle the requested encryption version.');
}
}

0 comments on commit 1a2e603

Please sign in to comment.