diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-09 10:05:20 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-09 10:05:20 +0100 |
commit | bb8dbc291b710fd044d3ac4a04233cb1ab6dc7c9 (patch) | |
tree | 04c62f3bc37dcd1d90fff883a28dcf5be1f737c9 /lib/private/share | |
parent | bc744ff6debe5f812b3c4a32f56b133b3cb3c145 (diff) | |
parent | 780d80d7c369c9f3068406d69387126a78936ee5 (diff) | |
download | nextcloud-server-bb8dbc291b710fd044d3ac4a04233cb1ab6dc7c9.tar.gz nextcloud-server-bb8dbc291b710fd044d3ac4a04233cb1ab6dc7c9.zip |
Merge pull request #21005 from owncloud/verify_password_before_unshare
The ajax code path unshares a link share when updating the password
Diffstat (limited to 'lib/private/share')
-rw-r--r-- | lib/private/share/share.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php index e62bdebc08e..3edffba8a3f 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -762,6 +762,11 @@ class Share extends Constants { $updateExistingShare = false; if (\OC::$server->getAppConfig()->getValue('core', 'shareapi_allow_links', 'yes') == 'yes') { + // IF the password is changed via the old ajax endpoint verify it before deleting the old share + if ($passwordChanged === true) { + self::verifyPassword($shareWith); + } + // when updating a link share // FIXME Don't delete link if we update it if ($checkExists = self::getItems($itemType, $itemSource, self::SHARE_TYPE_LINK, null, |