fix id card console not updating records (#28237)
* fix id card console not updating records * test --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -135,6 +135,8 @@ public sealed class IdCardConsoleSystem : SharedIdCardConsoleSystem
|
|||||||
_idCard.TryChangeJobDepartment(targetId, job);
|
_idCard.TryChangeJobDepartment(targetId, job);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UpdateStationRecord(uid, targetId, newFullName, newJobTitle, job);
|
||||||
|
|
||||||
if (!newAccessList.TrueForAll(x => component.AccessLevels.Contains(x)))
|
if (!newAccessList.TrueForAll(x => component.AccessLevels.Contains(x)))
|
||||||
{
|
{
|
||||||
_sawmill.Warning($"User {ToPrettyString(uid)} tried to write unknown access tag.");
|
_sawmill.Warning($"User {ToPrettyString(uid)} tried to write unknown access tag.");
|
||||||
@@ -168,8 +170,6 @@ public sealed class IdCardConsoleSystem : SharedIdCardConsoleSystem
|
|||||||
This current implementation is pretty shit as it logs 27 entries (27 lines) if someone decides to give themselves AA*/
|
This current implementation is pretty shit as it logs 27 entries (27 lines) if someone decides to give themselves AA*/
|
||||||
_adminLogger.Add(LogType.Action, LogImpact.Medium,
|
_adminLogger.Add(LogType.Action, LogImpact.Medium,
|
||||||
$"{ToPrettyString(player):player} has modified {ToPrettyString(targetId):entity} with the following accesses: [{string.Join(", ", addedTags.Union(removedTags))}] [{string.Join(", ", newAccessList)}]");
|
$"{ToPrettyString(player):player} has modified {ToPrettyString(targetId):entity} with the following accesses: [{string.Join(", ", addedTags.Union(removedTags))}] [{string.Join(", ", newAccessList)}]");
|
||||||
|
|
||||||
UpdateStationRecord(uid, targetId, newFullName, newJobTitle, job);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user