add contraint , that everybody expect admin is limited to 3 days, Add card package

This commit is contained in:
2016-02-13 17:23:43 +01:00
parent 556bdc3066
commit 70f43468af
37 changed files with 1418 additions and 19 deletions

View File

@@ -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'