mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
feat(cloud-federation-api): accept folder shares
Normalize resourceType from folder to file in RequestHandlerController::addShare() to allow accepting OCM folder shares from oCIS/OpenCloud/CERNBox. Signed-off-by: Micke Nordin <kano@sunet.se>
This commit is contained in:
parent
340ea17532
commit
5a7f72c6a6
1 changed files with 3 additions and 0 deletions
|
|
@ -106,6 +106,9 @@ class RequestHandlerController extends Controller {
|
|||
#[NoCSRFRequired]
|
||||
#[BruteForceProtection(action: 'receiveFederatedShare')]
|
||||
public function addShare($shareWith, $name, $description, $providerId, $owner, $ownerDisplayName, $sharedBy, $sharedByDisplayName, $protocol, $shareType, $resourceType) {
|
||||
if ($resourceType === 'folder') {
|
||||
$resourceType = 'file';
|
||||
}
|
||||
try {
|
||||
// if request is signed and well signed, no exception are thrown
|
||||
// if request is not signed and host is known for not supporting signed request, no exception are thrown
|
||||
|
|
|
|||
Loading…
Reference in a new issue