aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Controller/UserGlobalStoragesController.php
diff options
context:
space:
mode:
authoryemkareems <yemkareems@gmail.com>2024-10-18 14:04:34 +0530
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-10-29 11:08:33 +0000
commit8739a0add631c0f1f56f8c75a24d24a887f6216f (patch)
treeabb251b2d6997f000c17b95d8fc10b6a78afff66 /apps/files_external/lib/Controller/UserGlobalStoragesController.php
parenta9dd34ab35d9bf160a6d9d98de50192b342fa16b (diff)
downloadnextcloud-server-8739a0add631c0f1f56f8c75a24d24a887f6216f.tar.gz
nextcloud-server-8739a0add631c0f1f56f8c75a24d24a887f6216f.zip
fix: add PasswordConfirmationRequired to the eternal storages mentioned in review
Signed-off-by: yemkareems <yemkareems@gmail.com>
Diffstat (limited to 'apps/files_external/lib/Controller/UserGlobalStoragesController.php')
-rw-r--r--apps/files_external/lib/Controller/UserGlobalStoragesController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/lib/Controller/UserGlobalStoragesController.php b/apps/files_external/lib/Controller/UserGlobalStoragesController.php
index 3d364fff57d..c35387de4e9 100644
--- a/apps/files_external/lib/Controller/UserGlobalStoragesController.php
+++ b/apps/files_external/lib/Controller/UserGlobalStoragesController.php
@@ -15,6 +15,7 @@ use OCA\Files_External\Lib\StorageConfig;
use OCA\Files_External\NotFoundException;
use OCA\Files_External\Service\UserGlobalStoragesService;
use OCP\AppFramework\Http;
+use OCP\AppFramework\Http\Attribute\PasswordConfirmationRequired;
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
use OCP\AppFramework\Http\DataResponse;
use OCP\IConfig;
@@ -136,6 +137,7 @@ class UserGlobalStoragesController extends StoragesController {
* @return DataResponse
*/
#[NoAdminRequired]
+ #[PasswordConfirmationRequired]
public function update(
$id,
$backendOptions,