Edited lockhandler to pre-determine an object's superuser-status instead of re-acquiring it every lock check. This caused a surprisingly large overhead considering how often locks are checked for various reasons.
This commit is contained in:
parent
2dba8ad547
commit
e92c9ac93e
2 changed files with 22 additions and 16 deletions
|
|
@ -1938,7 +1938,7 @@ class CmdScript(MuxCommand):
|
|||
|
||||
key = "@script"
|
||||
aliases = "@addscript"
|
||||
locks = "cmd:perm(script) or perm(Wizards)"
|
||||
locks = "cmd:perm(script) or perm(Builders)"
|
||||
help_category = "Building"
|
||||
|
||||
def func(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue