Skip to content

Commit 6ef5ec8

Browse files
committed
Fix tests
1 parent 7af684a commit 6ef5ec8

File tree

3 files changed

+364
-398
lines changed

3 files changed

+364
-398
lines changed

apps/files_sharing/lib/API/Share20OCS.php

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

0 commit comments

Comments
 (0)