From d2f35f2062a76c91f62c8edbad724a5832aa940a Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sun, 5 May 2013 21:02:57 -0400 Subject: [PATCH] Fixes issue #124. --- framework/web/AccessRule.php | 3 --- framework/web/User.php | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) 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; } } }