From 2f23d64e613102cb1412bad3fd10fd7cbf76f2db Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Tue, 25 May 2021 14:39:32 +0200 Subject: [PATCH] Update routes.php --- community_server/config/routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');