Merge branch 'develop' into develop-py3

This commit is contained in:
Griatch 2019-03-21 16:45:50 +01:00
commit 3504d95402
5 changed files with 233 additions and 118 deletions

View file

@ -1952,8 +1952,8 @@ class CmdLock(ObjManipCommand):
caller.msg("You need 'control' access to change this type of lock.")
return
if not has_control_access or not obj.access(caller, "edit"):
caller.msg("You need 'edit' access to view or delete lock on this object.")
if not (has_control_access or obj.access(caller, "edit")):
caller.msg("You are not allowed to do that.")
return
lockdef = obj.locks.get(access_type)