mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 01:36:32 +01:00
@locks command bug fixed; Had forgotten a 'not' in the lock-check, reversing the result.
This commit is contained in:
parent
08b3de9e5e
commit
295a82cc04
1 changed files with 2 additions and 2 deletions
|
|
@ -1299,7 +1299,7 @@ class CmdLock(ObjManipCommand):
|
|||
if lockdef:
|
||||
string = lockdef[2]
|
||||
if 'del' in self.switches:
|
||||
if obj.access(caller, 'edit'):
|
||||
if not obj.access(caller, 'edit'):
|
||||
caller.msg("You are not allowed to do that.")
|
||||
return
|
||||
obj.locks.delete(access_type)
|
||||
|
|
@ -1315,7 +1315,7 @@ class CmdLock(ObjManipCommand):
|
|||
obj = caller.search(objname)
|
||||
if not obj:
|
||||
return
|
||||
if obj.access(caller, 'edit'):
|
||||
if not obj.access(caller, 'edit'):
|
||||
caller.msg("You are not allowed to do that.")
|
||||
return
|
||||
ok = obj.locks.add(lockdef, caller)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue