Skip to content

Commit

Permalink
fix: add PasswordConfirmationRequired to the eternal storages mention…
Browse files Browse the repository at this point in the history
…ed in review

Signed-off-by: yemkareems <[email protected]>
  • Loading branch information
yemkareems authored and backportbot[bot] committed Oct 29, 2024
1 parent ea07104 commit f5db675
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
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;
Expand Down Expand Up @@ -90,6 +91,7 @@ public function __construct(
*
* @return DataResponse
*/
#[PasswordConfirmationRequired]
public function create(
$mountPoint,
$backend,
Expand Down Expand Up @@ -155,6 +157,7 @@ public function create(
*
* @return DataResponse
*/
#[PasswordConfirmationRequired]
public function update(
$id,
$mountPoint,
Expand Down
2 changes: 2 additions & 0 deletions apps/files_external/lib/Controller/StoragesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
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;
Expand Down Expand Up @@ -322,6 +323,7 @@ public function show($id, $testOnly = true) {
*
* @return DataResponse
*/
#[PasswordConfirmationRequired]
public function destroy($id) {
try {
$this->service->removeStorage($id);
Expand Down

0 comments on commit f5db675

Please sign in to comment.