Allow clients to unban via console if they have the permission to unban (no need for permission for the specific console commands).

This commit is contained in:
Joonas Rikkonen
2018-12-11 19:24:05 +02:00
parent 38ef4db5f4
commit b60e2ede51

View File

@@ -147,6 +147,9 @@ namespace Barotrauma
case "ban":
case "banip":
return client.HasPermission(ClientPermissions.Ban);
case "unban":
case "unbanip":
return client.HasPermission(ClientPermissions.Unban);
case "netstats":
case "help":
case "dumpids":