mirror of
https://github.com/nextcloud/server.git
synced 2024-07-30 20:16:04 +02:00
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.
This commit is contained in:
parent
884946276e
commit
780d80d7c3
@ -764,6 +764,11 @@ class Share extends Constants {
|
|||||||
$updateExistingShare = false;
|
$updateExistingShare = false;
|
||||||
if (\OC::$server->getAppConfig()->getValue('core', 'shareapi_allow_links', 'yes') == 'yes') {
|
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
|
// when updating a link share
|
||||||
// FIXME Don't delete link if we update it
|
// FIXME Don't delete link if we update it
|
||||||
if ($checkExists = self::getItems($itemType, $itemSource, self::SHARE_TYPE_LINK, null,
|
if ($checkExists = self::getItems($itemType, $itemSource, self::SHARE_TYPE_LINK, null,
|
||||||
|
Loading…
Reference in New Issue
Block a user