From d8d72ca2523d929bc21db1c7d89c99aa21fd9355 Mon Sep 17 00:00:00 2001 From: yemkareems Date: Tue, 29 Oct 2024 18:02:47 +0530 Subject: [PATCH] fix: conflicts resolved by adding PasswordConfirmationRequired to update method Signed-off-by: yemkareems --- .../lib/Controller/UserGlobalStoragesController.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/files_external/lib/Controller/UserGlobalStoragesController.php b/apps/files_external/lib/Controller/UserGlobalStoragesController.php index ba15afb2bdfb1..7301997f72bab 100644 --- a/apps/files_external/lib/Controller/UserGlobalStoragesController.php +++ b/apps/files_external/lib/Controller/UserGlobalStoragesController.php @@ -35,6 +35,8 @@ use OCA\Files_External\NotFoundException; use OCA\Files_External\Service\UserGlobalStoragesService; use OCP\AppFramework\Http; +use OCP\AppFramework\Http\Attribute\NoAdminRequired; +use OCP\AppFramework\Http\Attribute\PasswordConfirmationRequired; use OCP\AppFramework\Http\DataResponse; use OCP\IConfig; use OCP\IGroupManager; @@ -155,9 +157,9 @@ public function show($id, $testOnly = true) { * @param bool $testOnly whether to storage should only test the connection or do more things * * @return DataResponse - * - * @NoAdminRequired */ + #[NoAdminRequired] + #[PasswordConfirmationRequired] public function update( $id, $backendOptions,