From 201f4181a4ed6e95e360b17c389d53a9e7f01e38 Mon Sep 17 00:00:00 2001 From: Charley Wu Date: Sat, 25 Nov 2023 22:54:15 +0800 Subject: [PATCH] Skip to check permissions for `js/index.php` - https://github.com/OpenMage/magento-lts/pull/1622 --- magento/app/code/community/Yireo/MageBridge/Block/Check.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/magento/app/code/community/Yireo/MageBridge/Block/Check.php b/magento/app/code/community/Yireo/MageBridge/Block/Check.php index 1a617a56..d7ec4158 100644 --- a/magento/app/code/community/Yireo/MageBridge/Block/Check.php +++ b/magento/app/code/community/Yireo/MageBridge/Block/Check.php @@ -177,7 +177,11 @@ protected function hasEntryPointValidPermissions() */ protected function hasJsFileValidPermissions() { - return $this->hasFileValidPermissions(Mage::getBaseDir() . DS . 'js' . DS . 'index.php'); + $file = Mage::getBaseDir() . DS . 'js' . DS . 'index.php'; + if (file_exists($file)) { + return $this->hasFileValidPermissions($file); + } + return true; } /**