Skip to content

Commit

Permalink
fix CheckCommandAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanx111 authored and Poggicek committed Oct 28, 2023
1 parent a4e9c7f commit 28723e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ bool CChatCommand::CheckCommandAccess(CBasePlayerController *pPlayer, uint64 fla

ZEPlayer *pZEPlayer = g_playerManager->GetPlayer(slot);

if (!pZEPlayer->IsAdminFlagSet(ADMFLAG_RCON))
if (!pZEPlayer->IsAdminFlagSet(flags))
{
ClientPrint(pPlayer, HUD_PRINTTALK, CHAT_PREFIX "You don't have access to this command.");
return false;
Expand Down

0 comments on commit 28723e1

Please sign in to comment.