diff --git a/community_server/config/routes.php b/community_server/config/routes.php index da9118f65..3b0dfedc1 100644 --- a/community_server/config/routes.php +++ b/community_server/config/routes.php @@ -66,7 +66,7 @@ Router::scope('/', function (RouteBuilder $routes) { return true; } $allowedIpLocalhost = ['127.0.0.1', 'localhost', '', '::1']; - if(true == in_array($clientIp, $allowedIpLocalhost)) { + if(in_array($clientIp, $allowedIpLocalhost)) { return true; } $allowedCaller = Configure::read('API.allowedCaller');