From 9868d2f18b4d6e603b70dd7ed5259b634bae58d0 Mon Sep 17 00:00:00 2001 From: David Reichard Date: Sun, 10 Mar 2019 15:58:39 -0400 Subject: [PATCH] Fix lockcmd bug not ignoring superuser when using switches. Resolves #1796. --- evennia/commands/default/building.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/commands/default/building.py b/evennia/commands/default/building.py index 53b710d97c..04e432540a 100644 --- a/evennia/commands/default/building.py +++ b/evennia/commands/default/building.py @@ -1972,7 +1972,7 @@ class CmdLock(ObjManipCommand): caller.msg("You need 'control' access to change this type of lock.") return - if not has_control_access or obj.access(caller, "edit"): + if not (has_control_access or obj.access(caller, "edit")): caller.msg("You are not allowed to do that.") return