Have CmdPerm check the 'edit' locktype when caller is a player instead of 'control' (which is not defined on players). Resolves #1223.
This commit is contained in:
parent
959e5ec558
commit
33000a55f6
1 changed files with 4 additions and 3 deletions
|
|
@ -495,9 +495,10 @@ class CmdPerm(COMMAND_DEFAULT_CLASS):
|
||||||
return
|
return
|
||||||
|
|
||||||
# we supplied an argument on the form obj = perm
|
# we supplied an argument on the form obj = perm
|
||||||
|
locktype = "edit" if playermode else "control"
|
||||||
if not obj.access(caller, 'control'):
|
if not obj.access(caller, locktype):
|
||||||
caller.msg("You are not allowed to edit this object's permissions.")
|
caller.msg("You are not allowed to edit this %s's permissions." %
|
||||||
|
("player" if playermode else "object"))
|
||||||
return
|
return
|
||||||
|
|
||||||
cstring = ""
|
cstring = ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue