mirror of
https://github.com/evennia/evennia.git
synced 2026-03-22 07:46:30 +01:00
Fix lockcmd bug not ignoring superuser when using switches. Resolves #1796.
This commit is contained in:
parent
9ab2422311
commit
9868d2f18b
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