diff --git a/framework/web/User.php b/framework/web/User.php index 88fc12d..e05d88a 100644 --- a/framework/web/User.php +++ b/framework/web/User.php @@ -460,8 +460,7 @@ class User extends Component $auth = Yii::$app->getAuthManager(); if ($auth !== null) { return $auth->checkAccess($this->getId(), $operation, $params); - } else { - return false; } + return false; } }