]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Disable the lock/unlock verb if we can't do that (#39605)
authorWinkarst-cpu <74284083+Winkarst-cpu@users.noreply.github.com>
Wed, 13 Aug 2025 10:52:08 +0000 (13:52 +0300)
committerGitHub <noreply@github.com>
Wed, 13 Aug 2025 10:52:08 +0000 (12:52 +0200)
* Fix

* Update

Content.Shared/Lock/LockSystem.cs

index 6ca546f5819c065c06111a908e143c078b3b3a9d..65ac04874ad47cdb86df7f0e9fae30c86296d762 100644 (file)
@@ -309,6 +309,7 @@ public sealed class LockSystem : EntitySystem
 
         AlternativeVerb verb = new()
         {
+            Disabled = !CanToggleLock(uid, args.User),
             Act = component.Locked
                 ? () => TryUnlock(uid, args.User, component)
                 : () => TryLock(uid, args.User, component),