mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-09-27 20:17:04 +02:00
Fixed perm ban issue with console
This commit is contained in:
parent
13ab223c86
commit
7efa2cdad3
1 changed files with 1 additions and 1 deletions
|
|
@ -375,7 +375,7 @@ namespace CS2_SimpleAdmin
|
||||||
{
|
{
|
||||||
bool validCaller = caller != null && caller.IsValid;
|
bool validCaller = caller != null && caller.IsValid;
|
||||||
|
|
||||||
bool canPermBan = validCaller && AdminManager.PlayerHasPermissions(caller, "@css/permban");
|
bool canPermBan = caller == null || validCaller && AdminManager.PlayerHasPermissions(caller, "@css/permban");
|
||||||
|
|
||||||
if (duration > Config.MaxBanDuration && canPermBan == false)
|
if (duration > Config.MaxBanDuration && canPermBan == false)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue