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;