[feat] Разделение банов по серверам.
# Conflicts: # Content.Client/Administration/UI/BanList/BanListLine.xaml.cs # Content.Client/Administration/UI/BanList/Bans/BanListHeader.xaml # Content.Client/Administration/UI/BanList/Bans/BanListLine.xaml # Content.Client/Administration/UI/Tabs/AdminTab/BanWindow.xaml # Content.Client/Administration/UI/Tabs/AdminTab/BanWindow.xaml.cs # Content.IntegrationTests/Tests/Commands/PardonCommand.cs # Content.Server/Administration/Commands/BanCommand.cs # Content.Server/Administration/Commands/DepartmentBanCommand.cs # Content.Server/Administration/Commands/RoleBanCommand.cs # Content.Server/Administration/Managers/RoleBanManager.cs # Content.Server/Database/ServerDbManager.cs # Content.Server/Database/ServerDbPostgres.cs # Content.Server/Database/ServerDbSqlite.cs
This commit is contained in:
@@ -22,6 +22,8 @@ public sealed class ServerRoleBanDef
|
||||
public ServerRoleUnbanDef? Unban { get; }
|
||||
public string Role { get; }
|
||||
|
||||
public string? ServerName { get; }
|
||||
|
||||
public ServerRoleBanDef(
|
||||
int? id,
|
||||
NetUserId? userId,
|
||||
@@ -35,7 +37,8 @@ public sealed class ServerRoleBanDef
|
||||
NoteSeverity severity,
|
||||
NetUserId? banningAdmin,
|
||||
ServerRoleUnbanDef? unban,
|
||||
string role)
|
||||
string role,
|
||||
string serverName)
|
||||
{
|
||||
if (userId == null && address == null && hwId == null)
|
||||
{
|
||||
@@ -62,5 +65,6 @@ public sealed class ServerRoleBanDef
|
||||
BanningAdmin = banningAdmin;
|
||||
Unban = unban;
|
||||
Role = role;
|
||||
ServerName = serverName;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user