diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-07 16:38:49 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-07 16:38:49 +0100 |
commit | 780d80d7c369c9f3068406d69387126a78936ee5 (patch) | |
tree | f05e39452a68b32ffa8242ab53f520ae1ddf90d9 /lib/private/share | |
parent | 884946276e13e7949cb2a5a46fd29d342ff386d4 (diff) | |
download | nextcloud-server-780d80d7c369c9f3068406d69387126a78936ee5.tar.gz nextcloud-server-780d80d7c369c9f3068406d69387126a78936ee5.zip |
The ajax code path unshares a link share when updating the password
In order to not mess up existing shares if the password gets verified we
should first fire this validation.
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 70f9a6e8920..8a8da038f3d 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -764,6 +764,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, |