From 0fac5e7f4d1892e9425bf50dd2fde219aac4a3e3 Mon Sep 17 00:00:00 2001 From: kremsy Date: Mon, 10 Mar 2014 14:01:19 +0100 Subject: [PATCH] small fix --- application/core/Admin/AuthCommands.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/core/Admin/AuthCommands.php b/application/core/Admin/AuthCommands.php index d32840c4..0a2f874a 100644 --- a/application/core/Admin/AuthCommands.php +++ b/application/core/Admin/AuthCommands.php @@ -53,7 +53,7 @@ class AuthCommands implements CommandListener { $this->maniaControl->chat->sendError("Player '{$commandParts[1]}' not found!", $player->login); return; } - $success = $this->maniaControl->authenticationManager->grantAuthLevel($player, AuthenticationManager::AUTH_LEVEL_SUPERADMIN); + $success = $this->maniaControl->authenticationManager->grantAuthLevel($target, AuthenticationManager::AUTH_LEVEL_SUPERADMIN); if (!$success) { $this->maniaControl->chat->sendError('Error occurred.', $player->login); return; @@ -84,7 +84,7 @@ class AuthCommands implements CommandListener { $this->maniaControl->chat->sendError("Player '{$commandParts[1]}' not found!", $player->login); return; } - $success = $this->maniaControl->authenticationManager->grantAuthLevel($player, AuthenticationManager::AUTH_LEVEL_ADMIN); + $success = $this->maniaControl->authenticationManager->grantAuthLevel($target, AuthenticationManager::AUTH_LEVEL_ADMIN); if (!$success) { $this->maniaControl->chat->sendError('Error occurred.', $player->login); return; @@ -115,7 +115,7 @@ class AuthCommands implements CommandListener { $this->maniaControl->chat->sendError("Player '{$commandParts[1]}' not found!", $player->login); return; } - $success = $this->maniaControl->authenticationManager->grantAuthLevel($player, AuthenticationManager::AUTH_LEVEL_MODERATOR); + $success = $this->maniaControl->authenticationManager->grantAuthLevel($target, AuthenticationManager::AUTH_LEVEL_MODERATOR); if (!$success) { $this->maniaControl->chat->sendError('Error occurred.', $player->login); return;