fixed small mistake on authentication

This commit is contained in:
kremsy 2017-05-09 22:27:05 +02:00
parent 207d6630ee
commit 34a36acd56

View File

@ -124,7 +124,6 @@ class ActionsMenu implements CallbackListener, ManialinkPageAnswerListener, Usag
$this->maniaControl->getManialinkManager()->sendManialink($manialink, $admins); $this->maniaControl->getManialinkManager()->sendManialink($manialink, $admins);
} }
//Send Menu to Players - Players with No Admin Permisssions //Send Menu to Players - Players with No Admin Permisssions
$players = $this->maniaControl->getAuthenticationManager()->getConnectedPlayers(); $players = $this->maniaControl->getAuthenticationManager()->getConnectedPlayers();
if (!empty($players)) { if (!empty($players)) {
@ -337,7 +336,7 @@ class ActionsMenu implements CallbackListener, ManialinkPageAnswerListener, Usag
* @param Player $player * @param Player $player
*/ */
public function handlePlayerJoined(Player $player) { public function handlePlayerJoined(Player $player) {
if ($this->maniaControl->getAuthenticationManager()->checkPermission($player, AuthenticationManager::AUTH_LEVEL_MODERATOR)) { if ($this->maniaControl->getAuthenticationManager()->checkRight($player, AuthenticationManager::AUTH_LEVEL_MODERATOR)) {
$maniaLink = $this->buildMenuIconsManialink(true); $maniaLink = $this->buildMenuIconsManialink(true);
} else { } else {
$maniaLink = $this->buildMenuIconsManialink(false); $maniaLink = $this->buildMenuIconsManialink(false);