only unshare user share if it was shared with the current user

このコミットが含まれているのは:
Bjoern Schiessle 2014-06-04 19:45:10 +02:00 committed by Robin Appelman
コミット eec1c4398a

ファイルの表示

@ -731,7 +731,8 @@ class Share extends \OC\Share\Constants {
$itemUnshared = false;
foreach ($shares as $share) {
if ((int)$share['share_type'] === \OCP\Share::SHARE_TYPE_USER) {
if ((int)$share['share_type'] === \OCP\Share::SHARE_TYPE_USER &&
$share['share_with'] === \OCP\User::getUser()) {
Helper::delete($share['id']);
$itemUnshared = true;
break;