diff --git a/core/Maps/MapManager.php b/core/Maps/MapManager.php index e78f7493..6b814191 100644 --- a/core/Maps/MapManager.php +++ b/core/Maps/MapManager.php @@ -195,7 +195,7 @@ class MapManager implements CallbackListener, CommunicationListener, UsageInform * @param string $uid */ public function updateMap($admin, $uid) { - if (!$this->maniaControl->getAuthenticationManager()->checkPermission($admin, self::SETTING_PERMISSION_ADD_MAP)) return; + if ($admin !== null && !$this->maniaControl->getAuthenticationManager()->checkPermission($admin, self::SETTING_PERMISSION_ADD_MAP)) return; $this->updateMapTimestamp($uid); @@ -274,7 +274,7 @@ class MapManager implements CallbackListener, CommunicationListener, UsageInform * @return bool */ public function removeMap($admin, $uid, $eraseFile = false, $message = true) { - if (!$this->maniaControl->getAuthenticationManager()->checkPermission($admin, self::SETTING_PERMISSION_REMOVE_MAP)) return; + if ($admin !== null && !$this->maniaControl->getAuthenticationManager()->checkPermission($admin, self::SETTING_PERMISSION_REMOVE_MAP)) return; if (!isset($this->maps[$uid])) { if ($admin) {