diff options
author | yemkareems <yemkareems@gmail.com> | 2024-10-18 14:04:34 +0530 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-10-29 11:06:12 +0000 |
commit | c8084175021c424b184c4825bf0bf171da6ac82e (patch) | |
tree | f8e6c1067188341ac85b33f578a5e138cf37c2cb /apps | |
parent | 749b6f3f68f5118e065939e13dfe72c49b179f94 (diff) | |
download | nextcloud-server-c8084175021c424b184c4825bf0bf171da6ac82e.tar.gz nextcloud-server-c8084175021c424b184c4825bf0bf171da6ac82e.zip |
fix: add PasswordConfirmationRequired to the eternal storages mentioned in review
Signed-off-by: yemkareems <yemkareems@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/Controller/GlobalStoragesController.php | 3 | ||||
-rw-r--r-- | apps/files_external/lib/Controller/StoragesController.php | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_external/lib/Controller/GlobalStoragesController.php b/apps/files_external/lib/Controller/GlobalStoragesController.php index cb785695647..e2dc9322c4a 100644 --- a/apps/files_external/lib/Controller/GlobalStoragesController.php +++ b/apps/files_external/lib/Controller/GlobalStoragesController.php @@ -30,6 +30,7 @@ namespace OCA\Files_External\Controller; use OCA\Files_External\NotFoundException; use OCA\Files_External\Service\GlobalStoragesService; use OCP\AppFramework\Http; +use OCP\AppFramework\Http\Attribute\PasswordConfirmationRequired; use OCP\AppFramework\Http\DataResponse; use OCP\IConfig; use OCP\IGroupManager; @@ -90,6 +91,7 @@ class GlobalStoragesController extends StoragesController { * * @return DataResponse */ + #[PasswordConfirmationRequired] public function create( $mountPoint, $backend, @@ -155,6 +157,7 @@ class GlobalStoragesController extends StoragesController { * * @return DataResponse */ + #[PasswordConfirmationRequired] public function update( $id, $mountPoint, diff --git a/apps/files_external/lib/Controller/StoragesController.php b/apps/files_external/lib/Controller/StoragesController.php index 157ea0e7088..8ad7f181529 100644 --- a/apps/files_external/lib/Controller/StoragesController.php +++ b/apps/files_external/lib/Controller/StoragesController.php @@ -36,6 +36,7 @@ use OCA\Files_External\NotFoundException; use OCA\Files_External\Service\StoragesService; use OCP\AppFramework\Controller; use OCP\AppFramework\Http; +use OCP\AppFramework\Http\Attribute\PasswordConfirmationRequired; use OCP\AppFramework\Http\DataResponse; use OCP\Files\StorageNotAvailableException; use OCP\IConfig; @@ -322,6 +323,7 @@ abstract class StoragesController extends Controller { * * @return DataResponse */ + #[PasswordConfirmationRequired] public function destroy($id) { try { $this->service->removeStorage($id); |