diff --git a/framework/web/AccessRule.php b/framework/web/AccessRule.php index aaf4f6b..e565e18 100644 --- a/framework/web/AccessRule.php +++ b/framework/web/AccessRule.php @@ -9,9 +9,6 @@ namespace yii\web; use yii\base\Component; use yii\base\Action; -use yii\base\Controller; -use yii\web\User; -use yii\web\Request; /** * diff --git a/framework/web/User.php b/framework/web/User.php index 2fbea91..88fc12d 100644 --- a/framework/web/User.php +++ b/framework/web/User.php @@ -461,7 +461,7 @@ class User extends Component if ($auth !== null) { return $auth->checkAccess($this->getId(), $operation, $params); } else { - return true; + return false; } } }