Skip to content

Commit 78f4a8e

Browse files
committed
Fix intergration tests
1 parent 01ef167 commit 78f4a8e

File tree

2 files changed

+164
-121
lines changed

2 files changed

+164
-121
lines changed

apps/files_sharing/lib/API/Share20OCS.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ public function getShares() {
499499
$userFolder = $this->rootFolder->getUserFolder($this->currentUser->getUID());
500500
try {
501501
$path = $userFolder->get($path);
502-
$path->lock(ILockingProvider::LOCK_SHARED);
502+
$this->lock($path);
503503
} catch (\OCP\Files\NotFoundException $e) {
504504
throw new OCSNotFoundException($this->l->t('Wrong path, file/folder doesn\'t exist'));
505505
} catch (LockedException $e) {

0 commit comments

Comments
 (0)