public beforeAction ( |
||
$action | ||
Résultat | boolean |
public function beforeAction($action)
{
parent::beforeAction($action);
if (!GlobalHelper::isValidAdmin()) {
throw new \Exception(yii::t('conf', 'you are not active'));
}
return true;
}