Skip to content

Commit ac015ef

Browse files
fix(install-controller): require authentication for plugin installation endpoint
1 parent f5d689a commit ac015ef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Controller/InstallController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ class InstallController extends AbstractController
1919
{
2020
public function __construct(
2121
private readonly PackageService $packageService,
22-
) {
23-
}
22+
) {}
2423

2524
#[OA\Post(
2625
path: '/api/_action/nuonic-plugin-installer/install',
@@ -35,7 +34,7 @@ public function __construct(
3534
#[Route(
3635
path: '/api/_action/nuonic-plugin-installer/install',
3736
name: 'api.action.nuonic_plugin_installer.install.execute',
38-
defaults: ['auth_required' => false],
37+
defaults: ['auth_required' => true],
3938
methods: ['POST']
4039
)]
4140
public function execute(Request $request, Context $context): Response

0 commit comments

Comments
 (0)