Skip to content

Commit

Permalink
コンソールコマンドを実行した際にエラーが発生してしまう問題を改善
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Dec 20, 2024
1 parent 9526bed commit be553fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/baser-core/src/Controller/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function __construct(
parent::__construct($request, $response, $name, $eventManager, $components);

// CSRFトークンの場合は高速化のためここで処理を終了
if(!$request->is('requestview')) return;
if(!BcUtil::isConsole() && !$request->is('requestview')) return;

$request->getSession()->start();

Expand Down

0 comments on commit be553fc

Please sign in to comment.