From 71b2f836117c07fbacc6e417444a6a25524cd142 Mon Sep 17 00:00:00 2001 From: Jocy Date: Thu, 11 May 2017 22:50:35 +0200 Subject: [PATCH] Hotfix --- core/Admin/ActionsMenu.php | 8 +++++++- core/ManiaControl.php | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/core/Admin/ActionsMenu.php b/core/Admin/ActionsMenu.php index c69f71b5..c3537d2c 100644 --- a/core/Admin/ActionsMenu.php +++ b/core/Admin/ActionsMenu.php @@ -341,8 +341,14 @@ class ActionsMenu implements SidebarMenuEntryRenderable, CallbackListener, Mania * @param Player $player */ public function handlePlayerJoined(Player $player) { - $maniaLink = $this->buildMenuIconsManialink($player); + if ($this->maniaControl->getAuthenticationManager()->checkRight($player, AuthenticationManager::AUTH_LEVEL_MODERATOR)) { + $maniaLink = $this->buildMenuIconsManialink(true); + } else { + $maniaLink = $this->buildMenuIconsManialink(false); + } + $this->maniaControl->getManialinkManager()->sendManialink($maniaLink, $player); + } /** diff --git a/core/ManiaControl.php b/core/ManiaControl.php index f50aa5ad..dcdd7006 100644 --- a/core/ManiaControl.php +++ b/core/ManiaControl.php @@ -52,7 +52,7 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener, /* * Constants */ - const VERSION = '0.210'; + const VERSION = '0.211'; const API_VERSION = '2013-04-16'; const MIN_DEDIVERSION = '2017-05-03_21_00'; const SCRIPT_TIMEOUT = 40;