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:
Griatch 2017-02-19 09:25:21 +01:00
parent 959e5ec558
commit 33000a55f6

View file

@ -495,9 +495,10 @@ class CmdPerm(COMMAND_DEFAULT_CLASS):
return
# we supplied an argument on the form obj = perm
if not obj.access(caller, 'control'):
caller.msg("You are not allowed to edit this object's permissions.")
locktype = "edit" if playermode else "control"
if not obj.access(caller, locktype):
caller.msg("You are not allowed to edit this %s's permissions." %
("player" if playermode else "object"))
return
cstring = ""