From: Winkarst-cpu <74284083+Winkarst-cpu@users.noreply.github.com> Date: Wed, 13 Aug 2025 10:52:08 +0000 (+0300) Subject: Disable the lock/unlock verb if we can't do that (#39605) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=99ad34ed06985e665bb24fcc1fc9d92eece1fa1b;p=space-station-14.git Disable the lock/unlock verb if we can't do that (#39605) * Fix * Update --- diff --git a/Content.Shared/Lock/LockSystem.cs b/Content.Shared/Lock/LockSystem.cs index 6ca546f581..65ac04874a 100644 --- a/Content.Shared/Lock/LockSystem.cs +++ b/Content.Shared/Lock/LockSystem.cs @@ -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),