Skip to content

Commit

Permalink
small amount of cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hyphenationc committed Sep 21, 2024
1 parent 1bf2f7a commit 940f34a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Content.Server/Power/EntitySystems/ApcSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ private static void OnApcStartup(EntityUid uid, ApcComponent component, Componen
//Update the HasAccess var for UI to read
private void OnBoundUiOpen(EntityUid uid, ApcComponent component, BoundUIOpenedEvent args)
{
// TODO: this should be per-player not stored on the apc //maybe remove before merge.
//component.HasAccess = _accessReader.IsAllowed(args.Actor, uid); //Maybe un-comment this.
// TODO: this should be per-player not stored on the apc //maybe remove before merge, if maints think this is solved
//component.HasAccess = _accessReader.IsAllowed(args.Actor, uid); //All instances of HasAccess have been commented.
//component.HasAccess = true; // This can likely be changed with the above line again, though it will re-inroduce unnecessary jank without singleUser:true
UpdateApcState(uid, component); //!!REMOVE (one of these) BEFORE MERGE!!
UpdateApcState(uid, component);
}

private void OnToggleMainBreaker(EntityUid uid, ApcComponent component, ApcToggleMainBreakerMessage args)
Expand All @@ -91,7 +91,6 @@ private void OnToggleMainBreaker(EntityUid uid, ApcComponent component, ApcToggl
return;
}

//component.HasAccess = _accessReader.IsAllowed(args.Actor, uid); !!REMOVE BEFORE MERGE!!
if (_accessReader.IsAllowed(args.Actor, uid)) // this is the check for ID permissions
{
ApcToggleBreaker(uid, component);
Expand Down

0 comments on commit 940f34a

Please sign in to comment.