Skip to content

Commit 99ad34e

Browse files
authored
Disable the lock/unlock verb if we can't do that (space-wizards#39605)
* Fix * Update
1 parent 2743dcf commit 99ad34e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Content.Shared/Lock/LockSystem.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ private void AddToggleLockVerb(EntityUid uid, LockComponent component, GetVerbsE
309309

310310
AlternativeVerb verb = new()
311311
{
312+
Disabled = !CanToggleLock(uid, args.User),
312313
Act = component.Locked
313314
? () => TryUnlock(uid, args.User, component)
314315
: () => TryLock(uid, args.User, component),

0 commit comments

Comments
 (0)