Skip to content

Commit

Permalink
Fix update controller
Browse files Browse the repository at this point in the history
1. Do not check require the user to be connected during the update process
2. Remove useless unresolvable parameter
  • Loading branch information
cedric-anne authored and trasher committed Jan 7, 2025
1 parent 9a791aa commit 550c351
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Glpi/Controller/NeedsUpdateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
use Config;
use DBmysql;
use Glpi\Application\View\TemplateRenderer;
use Glpi\Http\Firewall;
use Glpi\Security\Attribute\SecurityStrategy;
use Glpi\System\Requirement\DatabaseTablesEngine;
use Glpi\System\RequirementsManager;
use Glpi\Toolbox\VersionParser;
Expand All @@ -48,7 +50,8 @@

class NeedsUpdateController extends AbstractController
{
public function __invoke(string $key): Response
#[SecurityStrategy(Firewall::STRATEGY_NO_CHECK)]
public function __invoke(): Response
{
return new StreamedResponse($this->display(...));
}
Expand Down

0 comments on commit 550c351

Please sign in to comment.