Fix lockcmd bug not ignoring superuser when using switches. Resolves #1796.

This commit is contained in:
David Reichard 2019-03-10 15:58:39 -04:00
parent 9ab2422311
commit 9868d2f18b

View file

@ -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