From 7a78c19c6ba33c20ee3ba073467430f6cb05e7f7 Mon Sep 17 00:00:00 2001 From: Lucas Bartholemy Date: Fri, 27 Oct 2023 14:38:38 +0200 Subject: [PATCH] Revert "Fix visibility of the method `Controller::getAccessRules()`" --- controllers/ConfigController.php | 100 +++++++++++++++---------------- docs/CHANGELOG.md | 1 - 2 files changed, 50 insertions(+), 51 deletions(-) diff --git a/controllers/ConfigController.php b/controllers/ConfigController.php index 86fde8c..abf7b14 100644 --- a/controllers/ConfigController.php +++ b/controllers/ConfigController.php @@ -1,50 +1,50 @@ - ManageModules::class]]; - } - - /** - * Configuration action for system admins. - */ - public function actionIndex() - { - $model = new Config(); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - $this->view->saved(); - } - - $ip = Yii::$app->request->userIP; - if ($ip !== Yii::$app->request->remoteIP) { - $ip .= ', ' . Yii::$app->request->remoteIP; - } - - return $this->render('module', [ - 'model' => $model, - 'defaultDriverName' => TwofaHelper::getDriverByClassName($model->module->defaultDriver)->name, - 'ip' => $ip, - ]); - } -} + ManageModules::class]]; + } + + /** + * Configuration action for system admins. + */ + public function actionIndex() + { + $model = new Config(); + + if ($model->load(Yii::$app->request->post()) && $model->save()) { + $this->view->saved(); + } + + $ip = Yii::$app->request->userIP; + if ($ip !== Yii::$app->request->remoteIP) { + $ip .= ', ' . Yii::$app->request->remoteIP; + } + + return $this->render('module', [ + 'model' => $model, + 'defaultDriverName' => TwofaHelper::getDriverByClassName($model->module->defaultDriver)->name, + 'ip' => $ip, + ]); + } +} diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 7d14065..fef7149 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -4,7 +4,6 @@ Changelog 1.1.4 (Unreleased) ---------------------- - Enh #58: Tests for `next` version -- Fix #59: Fix visibility of the method `Controller::getAccessRules()` 1.1.3 (June 8, 2023) --------------------