add contraint , that everybody expect admin is limited to 3 days, Add card package
This commit is contained in:
@@ -86,8 +86,10 @@ class AccountStateController extends Controller {
|
||||
// return $this->redirect(['view', 'id' => $model->id_account_state]);
|
||||
|
||||
|
||||
$mail = new AccountStateMail(['model' => $model,'controller' => $this]);
|
||||
$mail->sednMail();
|
||||
if ( Helper::isAccountStateOpenSendMail() ){
|
||||
$mail = new AccountStateMail(['model' => $model,'controller' => $this]);
|
||||
$mail->sednMail();
|
||||
}
|
||||
|
||||
|
||||
return $this->redirect ( [
|
||||
@@ -132,9 +134,10 @@ class AccountStateController extends Controller {
|
||||
|
||||
if ($model->load ( Yii::$app->request->post () ) && $model->save ()) {
|
||||
|
||||
|
||||
$mail = new AccountStateMail(['model' => $model,'controller' => $this]);
|
||||
$mail->sednMail();
|
||||
if ( Helper::isAccountStateCloseSendMail()){
|
||||
$mail = new AccountStateMail(['model' => $model,'controller' => $this]);
|
||||
$mail->sednMail();
|
||||
}
|
||||
|
||||
return $this->redirect ( [
|
||||
'index'
|
||||
|
||||
Reference in New Issue
Block a user