| 1 | <?php |
||
| 11 | class IndexController extends \yii\web\Controller |
||
| 12 | { |
||
| 13 | 14 | public function behaviors() |
|
| 50 | |||
| 51 | public function actionIndex() |
||
| 52 | { |
||
| 53 | if (!Yii::$app->user->can('AdminModule')) { |
||
| 54 | throw new ForbiddenHttpException(Yii::t('app', 'Access Denied')); |
||
| 55 | } // @codeCoverageIgnore |
||
| 56 | |||
| 57 | return $this->render('index'); |
||
| 58 | } |
||
| 59 | |||
| 60 | 14 | public function actionLogin() |
|
| 71 | |||
| 72 | public function actionLogout() |
||
| 77 | } |
||
| 78 |