mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 13:37:17 +02:00
Merge pull request #1797 from dmreichard/cmdlockfix
Fix lockcmd bug not ignoring superuser when using switches. Resolves #1796.
This commit is contained in:
commit
64cd982592
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue