diff --git a/src/components/AccessControl.php b/src/components/AccessControl.php index 42cf16f..e64ffc6 100644 --- a/src/components/AccessControl.php +++ b/src/components/AccessControl.php @@ -4,6 +4,7 @@ use yii\web\ForbiddenHttpException; use Yii; +use yii\base\Module; use yii\web\User; use yii\di\Instance; @@ -68,4 +69,15 @@ protected function denyAccess($user) } } + /** + * @inheritdoc + */ + protected function isActive($action) + { + $uniqueId = $action->getUniqueId(); + if ($uniqueId === Yii::$app->getErrorHandler()->errorAction) { + return false; + } + return true; + } } \ No newline at end of file