Improve ID modification logs (#12918)

* show modifications in access change logs

* skip logging and updates to name and job when no change was made

* add method to SharedAccessSystem.cs to get access tags

* add ID microwave logs
This commit is contained in:
Chief-Engineer
2022-12-19 21:53:20 -06:00
committed by GitHub
parent 6293c6f359
commit 0d18cec6b5
3 changed files with 29 additions and 1 deletions

View File

@@ -67,6 +67,15 @@ namespace Content.Shared.Access.Systems
return true;
}
/// <summary>
/// Gets the set of access tags.
/// </summary>
/// <param name="newTags">The new access tags</param>
public IEnumerable<string>? TryGetTags(EntityUid uid, AccessComponent? access = null)
{
return !Resolve(uid, ref access) ? null : access.Tags;
}
public bool TryAddGroups(EntityUid uid, IEnumerable<string> newGroups, AccessComponent? access = null)
{
if (!Resolve(uid, ref access))