Merge pull request #1797 from dmreichard/cmdlockfix

Fix lockcmd bug not ignoring superuser when using switches. Resolves #1796.
This commit is contained in:
Griatch 2019-03-12 19:06:54 +01:00 committed by GitHub
commit 64cd982592

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