ソースを参照

Merge pull request #26372 from nextcloud/fix/noid/calm-down-recipient-not-in-grp

gracefully handle deleteFromSelf when share is already gone
tags/v22.0.0beta1
Roeland Jago Douma 3年前
コミット
06ae9c3dc7
コミッターのメールアドレスに関連付けられたアカウントが存在しません

+ 2
- 1
lib/private/Share20/DefaultShareProvider.php ファイルの表示

@@ -470,7 +470,8 @@ class DefaultShareProvider implements IShareProvider {
}

if (!$group->inGroup($user)) {
throw new ProviderException('Recipient not in receiving group');
// nothing left to do
return;
}

// Try to fetch user specific share

+ 0
- 3
tests/lib/Share20/DefaultShareProviderTest.php ファイルの表示

@@ -1558,9 +1558,6 @@ class DefaultShareProviderTest extends \Test\TestCase {


public function testDeleteFromSelfGroupUserNotInGroup() {
$this->expectException(\OC\Share20\Exception\ProviderException::class);
$this->expectExceptionMessage('Recipient not in receiving group');

$qb = $this->dbConn->getQueryBuilder();
$stmt = $qb->insert('share')
->values([

読み込み中…
キャンセル
保存