ID Console can no longer grant access the privileged ID doesn't have. (read: AA nerf) (#14699)
Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -85,6 +85,7 @@ public sealed class IdCardConsoleComponent : Component
|
||||
public readonly string? TargetIdFullName;
|
||||
public readonly string? TargetIdJobTitle;
|
||||
public readonly string[]? TargetIdAccessList;
|
||||
public readonly string[]? AllowedModifyAccessList;
|
||||
public readonly string TargetIdJobPrototype;
|
||||
|
||||
public IdCardConsoleBoundUserInterfaceState(bool isPrivilegedIdPresent,
|
||||
@@ -93,6 +94,7 @@ public sealed class IdCardConsoleComponent : Component
|
||||
string? targetIdFullName,
|
||||
string? targetIdJobTitle,
|
||||
string[]? targetIdAccessList,
|
||||
string[]? allowedModifyAccessList,
|
||||
string targetIdJobPrototype,
|
||||
string privilegedIdName,
|
||||
string targetIdName)
|
||||
@@ -103,6 +105,7 @@ public sealed class IdCardConsoleComponent : Component
|
||||
TargetIdFullName = targetIdFullName;
|
||||
TargetIdJobTitle = targetIdJobTitle;
|
||||
TargetIdAccessList = targetIdAccessList;
|
||||
AllowedModifyAccessList = allowedModifyAccessList;
|
||||
TargetIdJobPrototype = targetIdJobPrototype;
|
||||
PrivilegedIdName = privilegedIdName;
|
||||
TargetIdName = targetIdName;
|
||||
|
||||
@@ -10,12 +10,15 @@ namespace Content.Shared.Access.Systems
|
||||
public abstract class SharedIdCardConsoleSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly ItemSlotsSystem _itemSlotsSystem = default!;
|
||||
[Dependency] private readonly ILogManager _log = default!;
|
||||
|
||||
public const string Sawmill = "idconsole";
|
||||
protected ISawmill _sawmill = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
_sawmill = _log.GetSawmill(Sawmill);
|
||||
|
||||
SubscribeLocalEvent<IdCardConsoleComponent, ComponentInit>(OnComponentInit);
|
||||
SubscribeLocalEvent<IdCardConsoleComponent, ComponentRemove>(OnComponentRemove);
|
||||
|
||||
Reference in New Issue
Block a user