mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Improved action filter and action execution flow by supporting installing action filters at controller, module and application levels
This commit is contained in:
@ -106,12 +106,8 @@ class Controller extends \yii\web\Controller
|
||||
public function beforeAction($action)
|
||||
{
|
||||
$this->authenticate($action);
|
||||
if (parent::beforeAction($action)) {
|
||||
$this->checkRateLimit($action);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
$this->checkRateLimit($action);
|
||||
return parent::beforeAction($action);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user