Fix batchcommand/interactive mode as Developer perm. Resolve #687

This commit is contained in:
Griatch 2025-01-18 16:19:44 +01:00
parent a921660fd0
commit ad67df9721
2 changed files with 18 additions and 15 deletions

View file

@ -20,6 +20,7 @@
- [Fix][pull3710]: Clean reduntant session clearin in `at_server_cold_start` (InspectorCaracal) - [Fix][pull3710]: Clean reduntant session clearin in `at_server_cold_start` (InspectorCaracal)
- [Fix][pull3711]: Usability improvements in the Discord integration (InspectorCaracal) - [Fix][pull3711]: Usability improvements in the Discord integration (InspectorCaracal)
- [Fix][issue3688]: Made TutorialWorld possible to build cleanly without being a superuser (Griatch) - [Fix][issue3688]: Made TutorialWorld possible to build cleanly without being a superuser (Griatch)
- [Fix][issue3687]: Fixed batchcommand/interactive with developer perms (Griatch)
- Fix: Make `\\` properly preserve one backlash in funcparser (Griatch) - Fix: Make `\\` properly preserve one backlash in funcparser (Griatch)
- Fix: When an object was used as an On-Demand Task's category, and that object was then deleted, - Fix: When an object was used as an On-Demand Task's category, and that object was then deleted,
it caused an OnDemandHandler save error on reload. Will now clean up on save. (Griatch) it caused an OnDemandHandler save error on reload. Will now clean up on save. (Griatch)
@ -38,6 +39,8 @@
[pull3710]: https://github.com/evennia/evennia/pull/3710 [pull3710]: https://github.com/evennia/evennia/pull/3710
[pull3711]: https://github.com/evennia/evennia/pull/3711 [pull3711]: https://github.com/evennia/evennia/pull/3711
[issue3688]: https://github.com/evennia/evennia/issues/3688 [issue3688]: https://github.com/evennia/evennia/issues/3688
[issue3688]: https://github.com/evennia/evennia/issues/3687
## Evennia 4.5.0 ## Evennia 4.5.0

View file

@ -394,7 +394,7 @@ class CmdStateAbort(_COMMAND_DEFAULT_CLASS):
key = "abort" key = "abort"
help_category = "BatchProcess" help_category = "BatchProcess"
locks = "cmd:perm(batchcommands)" locks = "cmd:perm(batchcommands) or perm(Developer)"
def func(self): def func(self):
"""Exit back to default.""" """Exit back to default."""
@ -427,7 +427,7 @@ class CmdStatePP(_COMMAND_DEFAULT_CLASS):
key = "pp" key = "pp"
help_category = "BatchProcess" help_category = "BatchProcess"
locks = "cmd:perm(batchcommands)" locks = "cmd:perm(batchcommands) or perm(Developer)"
def func(self): def func(self):
""" """
@ -450,7 +450,7 @@ class CmdStateRR(_COMMAND_DEFAULT_CLASS):
key = "rr" key = "rr"
help_category = "BatchProcess" help_category = "BatchProcess"
locks = "cmd:perm(batchcommands)" locks = "cmd:perm(batchcommands) or perm(Developer)"
def func(self): def func(self):
caller = self.caller caller = self.caller
@ -473,7 +473,7 @@ class CmdStateRRR(_COMMAND_DEFAULT_CLASS):
key = "rrr" key = "rrr"
help_category = "BatchProcess" help_category = "BatchProcess"
locks = "cmd:perm(batchcommands)" locks = "cmd:perm(batchcommands) or perm(Developer)"
def func(self): def func(self):
caller = self.caller caller = self.caller
@ -495,7 +495,7 @@ class CmdStateNN(_COMMAND_DEFAULT_CLASS):
key = "nn" key = "nn"
help_category = "BatchProcess" help_category = "BatchProcess"
locks = "cmd:perm(batchcommands)" locks = "cmd:perm(batchcommands) or perm(Developer)"
def func(self): def func(self):
caller = self.caller caller = self.caller
@ -518,7 +518,7 @@ class CmdStateNL(_COMMAND_DEFAULT_CLASS):
key = "nl" key = "nl"
help_category = "BatchProcess" help_category = "BatchProcess"
locks = "cmd:perm(batchcommands)" locks = "cmd:perm(batchcommands) or perm(Developer)"
def func(self): def func(self):
caller = self.caller caller = self.caller
@ -541,7 +541,7 @@ class CmdStateBB(_COMMAND_DEFAULT_CLASS):
key = "bb" key = "bb"
help_category = "BatchProcess" help_category = "BatchProcess"
locks = "cmd:perm(batchcommands)" locks = "cmd:perm(batchcommands) or perm(Developer)"
def func(self): def func(self):
caller = self.caller caller = self.caller
@ -564,7 +564,7 @@ class CmdStateBL(_COMMAND_DEFAULT_CLASS):
key = "bl" key = "bl"
help_category = "BatchProcess" help_category = "BatchProcess"
locks = "cmd:perm(batchcommands)" locks = "cmd:perm(batchcommands) or perm(Developer)"
def func(self): def func(self):
caller = self.caller caller = self.caller
@ -588,7 +588,7 @@ class CmdStateSS(_COMMAND_DEFAULT_CLASS):
key = "ss" key = "ss"
help_category = "BatchProcess" help_category = "BatchProcess"
locks = "cmd:perm(batchcommands)" locks = "cmd:perm(batchcommands) or perm(Developer)"
def func(self): def func(self):
caller = self.caller caller = self.caller
@ -618,7 +618,7 @@ class CmdStateSL(_COMMAND_DEFAULT_CLASS):
key = "sl" key = "sl"
help_category = "BatchProcess" help_category = "BatchProcess"
locks = "cmd:perm(batchcommands)" locks = "cmd:perm(batchcommands) or perm(Developer)"
def func(self): def func(self):
caller = self.caller caller = self.caller
@ -647,7 +647,7 @@ class CmdStateCC(_COMMAND_DEFAULT_CLASS):
key = "cc" key = "cc"
help_category = "BatchProcess" help_category = "BatchProcess"
locks = "cmd:perm(batchcommands)" locks = "cmd:perm(batchcommands) or perm(Developer)"
def func(self): def func(self):
caller = self.caller caller = self.caller
@ -676,7 +676,7 @@ class CmdStateJJ(_COMMAND_DEFAULT_CLASS):
key = "jj" key = "jj"
help_category = "BatchProcess" help_category = "BatchProcess"
locks = "cmd:perm(batchcommands)" locks = "cmd:perm(batchcommands) or perm(Developer)"
def func(self): def func(self):
caller = self.caller caller = self.caller
@ -701,7 +701,7 @@ class CmdStateJL(_COMMAND_DEFAULT_CLASS):
key = "jl" key = "jl"
help_category = "BatchProcess" help_category = "BatchProcess"
locks = "cmd:perm(batchcommands)" locks = "cmd:perm(batchcommands) or perm(Developer)"
def func(self): def func(self):
caller = self.caller caller = self.caller
@ -726,7 +726,7 @@ class CmdStateQQ(_COMMAND_DEFAULT_CLASS):
key = "qq" key = "qq"
help_category = "BatchProcess" help_category = "BatchProcess"
locks = "cmd:perm(batchcommands)" locks = "cmd:perm(batchcommands) or perm(Developer)"
def func(self): def func(self):
purge_processor(self.caller) purge_processor(self.caller)
@ -738,7 +738,7 @@ class CmdStateHH(_COMMAND_DEFAULT_CLASS):
key = "hh" key = "hh"
help_category = "BatchProcess" help_category = "BatchProcess"
locks = "cmd:perm(batchcommands)" locks = "cmd:perm(batchcommands) or perm(Developer)"
def func(self): def func(self):
string = """ string = """