Skip to content

Commit

Permalink
Workaround in MatchId
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnemotechnician committed Feb 2, 2025
1 parent d467baa commit 5f73a07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Content.Shared/Floofstation/Lock/IdLockSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ public AccessLevel CheckAccess(Entity<IdCardComponent> id, Entity<IdLockComponen

private AccessLevel MatchId(Entity<IdCardComponent> id, Entity<IdLockComponent> lockable)
{
// ID always matches if the lock is inactive.
if (!lockable.Comp.Active)
return AccessLevel.Full;

if (lockable.Comp.Info.OwnerName == id.Comp.FullName && lockable.Comp.Info.OwnerJobTitle == id.Comp.JobTitle)
return AccessLevel.Full;

Expand Down

0 comments on commit 5f73a07

Please sign in to comment.