Skip to content

Commit

Permalink
修复BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
forecho committed Sep 25, 2015
1 parent de5bf65 commit 7600660
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/AccessControl.php
Expand Up @@ -4,6 +4,7 @@

use yii\web\ForbiddenHttpException;
use Yii;
use yii\base\Module;
use yii\web\User;
use yii\di\Instance;

Expand Down Expand Up @@ -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;
}
}

0 comments on commit 7600660

Please sign in to comment.