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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user