From 795559f07b40e84e5f8182e796c990c49b047ed8 Mon Sep 17 00:00:00 2001 From: ryuring Date: Sun, 25 Feb 2024 11:29:23 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=83=BC=E3=83=9E=E3=81=AE=E4=B8=8D?= =?UTF-8?q?=E8=A6=81=E3=81=AA=E3=83=AB=E3=83=BC=E3=83=86=E3=82=A3=E3=83=B3?= =?UTF-8?q?=E3=82=B0=E3=81=8C=E7=99=BB=E9=8C=B2=E3=81=95=E3=82=8C=E3=81=AA?= =?UTF-8?q?=E3=81=84=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/baser-core/src/BcPlugin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/baser-core/src/BcPlugin.php b/plugins/baser-core/src/BcPlugin.php index b1ab57792c..e619842c6a 100644 --- a/plugins/baser-core/src/BcPlugin.php +++ b/plugins/baser-core/src/BcPlugin.php @@ -18,6 +18,7 @@ use BaserCore\Service\PermissionGroupsService; use BaserCore\Service\PermissionGroupsServiceInterface; use BaserCore\Utility\BcContainerTrait; +use BaserCore\Utility\BcPluginUtil; use BaserCore\Utility\BcUpdateLog; use BaserCore\Utility\BcUtil; use Cake\Core\BasePlugin; @@ -481,7 +482,7 @@ function(RouteBuilder $routes) { */ public function frontPageRouting(RouteBuilder $routes, string $plugin) { - + if(!BcPluginUtil::isPlugin($plugin)) return $routes; $routes->plugin( $plugin, ['path' => '/' . Inflector::dasherize($plugin)], @@ -557,6 +558,7 @@ function(RouteBuilder $routes) use($isApi) { */ public function siteRouting(RouteBuilder $routes, string $plugin) { + if(!BcPluginUtil::isPlugin($plugin)) return $routes; $request = Router::getRequest(); if (!$request) { $request = ServerRequestFactory::fromGlobals();