mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
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
|
||||
|
||||
# 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 = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue