From df9903e97df86145bbc50f9f4de1ca6d70dd6cfb Mon Sep 17 00:00:00 2001 From: davewiththenicehat <54369722+davewiththenicehat@users.noreply.github.com> Date: Tue, 29 Jun 2021 09:14:47 -0400 Subject: [PATCH] evennia.commands.default.building.CmdDesc.edit_handler force access resitrations CmdDesc edit_handler returns after access rejection --- evennia/commands/default/building.py | 1 + 1 file changed, 1 insertion(+) diff --git a/evennia/commands/default/building.py b/evennia/commands/default/building.py index 6964f337a3..7bfd3d483b 100644 --- a/evennia/commands/default/building.py +++ b/evennia/commands/default/building.py @@ -651,6 +651,7 @@ class CmdDesc(COMMAND_DEFAULT_CLASS): if not (obj.access(self.caller, "control") or obj.access(self.caller, "edit")): self.caller.msg("You don't have permission to edit the description of %s." % obj.key) + return self.caller.db.evmenu_target = obj # launch the editor