Skip to content

Commit

Permalink
Merge pull request #39 from H-Algabri/dev/before-action-check
Browse files Browse the repository at this point in the history
Access check
  • Loading branch information
H-Algabri authored Jul 6, 2023
2 parents 62416c3 + 3b6897e commit 30e24b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ class Module extends \yii\base\Module
*/
public function beforeAction($action)
{
parent::beforeAction($action);
if (!parent::beforeAction($action)) {
return false;
}

if (empty($this->filesystem)) {
\Yii::$app->session->addFlash(
Expand Down

0 comments on commit 30e24b6

Please sign in to comment.