|
|
|
|
|
|
|
|
|
|
|
|
|
|
$referer = Yii::$app->request->referrer ?: Yii::$app->homeUrl; |
|
|
$referer = Yii::$app->request->referrer ?: Yii::$app->homeUrl; |
|
|
|
|
|
|
|
|
|
|
|
// @TODO : comprendre pourquoi le referer n'est pas complet en ligne (slug producteur + controller/action absents) |
|
|
|
|
|
if($referer == 'https://'.Yii::getAlias('@producerSubdomain').'.'.Yii::getAlias('@domainName').'/') { |
|
|
|
|
|
return $this->redirect(Yii::$app->homeUrl); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
$authenticatedActions = [ |
|
|
$authenticatedActions = [ |
|
|
// frontend |
|
|
// frontend |
|
|
'user/update', |
|
|
'user/update', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// producer |
|
|
// producer |
|
|
'order/order', |
|
|
'order/order', |
|
|
'order/history', |
|
|
'order/history', |