From 9654b26f2b2d42a6426d09e37ae448a1bcfcbd93 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sun, 19 Jan 2014 00:15:50 +0100 Subject: [PATCH] minor fix --- application/core/Maps/MapManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/core/Maps/MapManager.php b/application/core/Maps/MapManager.php index 1d9f1a5b..d41a85e6 100644 --- a/application/core/Maps/MapManager.php +++ b/application/core/Maps/MapManager.php @@ -301,7 +301,7 @@ class MapManager implements CallbackListener { $this->saveMap($map); $mapsDirectory = $this->maniaControl->server->getMapsDirectory(); - if($this->maniaControl->server->checkAccess($mapsDirectory)) { + if(is_readable($mapsDirectory . $map->fileName)) { $mapFetcher = new \GBXChallMapFetcher(true); try { $mapFetcher->processFile($mapsDirectory . $map->fileName);