add backend theme AdminLte, bind reception/transaction to a permission

This commit is contained in:
2015-11-23 19:55:49 +01:00
parent e13866d7da
commit bcae71155e
25 changed files with 993 additions and 128 deletions

View File

@@ -66,6 +66,10 @@ class SiteController extends Controller
}
$model = new LoginForm();
$model->roles = [
'admin',
'employee'
];
if ($model->load(Yii::$app->request->post()) && $model->login()) {
return $this->goBack();
} else {