Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix tests
  • Loading branch information
rullzer committed Aug 5, 2016
commit 0556e40d3e560695f4aee5f9ef194355f1573e0f
4 changes: 2 additions & 2 deletions apps/files_sharing/lib/API/Share20OCS.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ public function getShares() {
$userFolder = $this->rootFolder->getUserFolder($this->currentUser->getUID());
try {
$path = $userFolder->get($path);
$path->lock(ILockingProvider::LOCK_SHARED);
$this->lock($path);
} catch (\OCP\Files\NotFoundException $e) {
throw new OCSNotFoundException($this->l->t('Wrong path, file/folder doesn\'t exist'));
} catch (LockedException $e) {
Expand Down Expand Up @@ -659,7 +659,7 @@ public function updateShare($id) {
}

if ($share->getPermissions() & ~$maxPermissions) {
throw new OCSBadRequestException($this->l->t('Cannot increase permissions'));
throw new OCSNotFoundException($this->l->t('Cannot increase permissions'));
}
}
}
Expand Down
Loading