fixed small mistake on authentication
This commit is contained in:
		@@ -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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user