From: nikthechampiongr <32041239+nikthechampiongr@users.noreply.github.com> Date: Mon, 12 Aug 2024 23:25:31 +0000 (+0300) Subject: Fix permission check for whitelists in player panel (#30948) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=dcc11873f924ec545a59e176d56fada12103ffaa;p=space-station-14.git Fix permission check for whitelists in player panel (#30948) --- diff --git a/Content.Client/Administration/UI/PlayerPanel/PlayerPanel.xaml.cs b/Content.Client/Administration/UI/PlayerPanel/PlayerPanel.xaml.cs index 824d9eb6c7..f20e47b6a1 100644 --- a/Content.Client/Administration/UI/PlayerPanel/PlayerPanel.xaml.cs +++ b/Content.Client/Administration/UI/PlayerPanel/PlayerPanel.xaml.cs @@ -124,7 +124,7 @@ public sealed partial class PlayerPanel : FancyWindow NotesButton.Disabled = !_adminManager.CanCommand("adminnotes"); ShowBansButton.Disabled = !_adminManager.CanCommand("banlist"); WhitelistToggle.Disabled = - !(_adminManager.CanCommand("addwhitelist") && _adminManager.CanCommand("removewhitelist")); + !(_adminManager.CanCommand("whitelistadd") && _adminManager.CanCommand("whitelistremove")); LogsButton.Disabled = !_adminManager.CanCommand("adminlogs"); RejuvenateButton.Disabled = !_adminManager.HasFlag(AdminFlags.Debug); DeleteButton.Disabled = !_adminManager.HasFlag(AdminFlags.Debug);