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 {