Skip to content

Commit

Permalink
Fix colornetwork command not checking for correct permissions (space-…
Browse files Browse the repository at this point in the history
…wizards#35180)

Fix colornetwork command not checking for correct permissions.

What is shell.IsClient even??
  • Loading branch information
Simyon264 authored Feb 15, 2025
1 parent 97d6111 commit 71b5133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Sandbox/Commands/ColorNetworkCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
var sandboxManager = _entManager.System<SandboxSystem>();
var adminManager = IoCManager.Resolve<IAdminManager>();
if (shell.IsClient && (!sandboxManager.IsSandboxEnabled && !adminManager.HasAdminFlag(shell.Player!, AdminFlags.Mapping)))
if (shell.IsClient || (!sandboxManager.IsSandboxEnabled && !adminManager.HasAdminFlag(shell.Player!, AdminFlags.Mapping)))
{
shell.WriteError(Loc.GetString("cmd-colornetwork-no-access"));
}
Expand Down

0 comments on commit 71b5133

Please sign in to comment.