Skip to content

Commit

Permalink
Merge pull request #578 from nextcloud/artonge/feat/broader_version_c…
Browse files Browse the repository at this point in the history
…heck

Allow access to more kind of versions from the v1 endpoints
  • Loading branch information
artonge authored Feb 28, 2024
2 parents d5f6ed0 + 1a2e603 commit fbf6bab
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 fbf6bab

Please sign in to comment.