From 77d9fad7012d977fd3eee050eb04e9959855827d Mon Sep 17 00:00:00 2001 From: sensorario Date: Mon, 6 May 2013 12:38:07 +0200 Subject: [PATCH] Removed unnecessary else --- framework/web/User.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } }