From eeb50a8d4307ac1356921ff6b63db95fbd096c56 Mon Sep 17 00:00:00 2001 From: MaksPL Date: Tue, 23 Mar 2021 11:11:07 +0200 Subject: [PATCH] hotfix user controller init --- src/controllers/UserController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controllers/UserController.php b/src/controllers/UserController.php index 4b752bd9..ae9fc3ab 100644 --- a/src/controllers/UserController.php +++ b/src/controllers/UserController.php @@ -41,6 +41,8 @@ class UserController extends Controller public function init() { + parent::init(); + if (\Yii::$app->request->get(static::REQUEST_PARAM_USERNAME) && !$this->user) { throw new NotFoundHttpException("User not found or inactive"); } else {