@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:
|
if lockdef:
|
||||||
string = lockdef[2]
|
string = lockdef[2]
|
||||||
if 'del' in self.switches:
|
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.")
|
caller.msg("You are not allowed to do that.")
|
||||||
return
|
return
|
||||||
obj.locks.delete(access_type)
|
obj.locks.delete(access_type)
|
||||||
|
|
@ -1315,7 +1315,7 @@ class CmdLock(ObjManipCommand):
|
||||||
obj = caller.search(objname)
|
obj = caller.search(objname)
|
||||||
if not obj:
|
if not obj:
|
||||||
return
|
return
|
||||||
if obj.access(caller, 'edit'):
|
if not obj.access(caller, 'edit'):
|
||||||
caller.msg("You are not allowed to do that.")
|
caller.msg("You are not allowed to do that.")
|
||||||
return
|
return
|
||||||
ok = obj.locks.add(lockdef, caller)
|
ok = obj.locks.add(lockdef, caller)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue