Skip to content

Commit

Permalink
Skip to check permissions for js/index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
akunzai committed Nov 26, 2023
1 parent 60cf82e commit 201f418
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion magento/app/code/community/Yireo/MageBridge/Block/Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 201f418

Please sign in to comment.