mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #56498 from nextcloud/fix/fix-deleting-broken-shares
fix(files_sharing): Allow deleting a share of a missing file
This commit is contained in:
commit
a7dd4e8c05
1 changed files with 2 additions and 0 deletions
|
|
@ -545,6 +545,8 @@ class ShareAPIController extends OCSController {
|
|||
$this->lock($share->getNode());
|
||||
} catch (LockedException $e) {
|
||||
throw new OCSNotFoundException($this->l->t('Could not delete share'));
|
||||
} catch (NotFoundException $e) {
|
||||
$this->logger->debug('File of to be deleted share was not found, skip locking', ['exception' => $e]);
|
||||
}
|
||||
|
||||
if (!$this->canAccessShare($share)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue