mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Lockfuncs are now called with an access_type kwarg in their **kwargs
This commit is contained in:
parent
923ec28ec4
commit
8b2fea320f
1 changed files with 2 additions and 1 deletions
|
|
@ -572,7 +572,8 @@ class LockHandler:
|
|||
evalstring, func_tup, raw_string = self.locks[access_type]
|
||||
# execute all lock funcs in the correct order, producing a tuple of True/False results.
|
||||
true_false = tuple(
|
||||
bool(tup[0](accessing_obj, self.obj, *tup[1], **tup[2])) for tup in func_tup
|
||||
bool(tup[0](accessing_obj, self.obj, *tup[1], access_type=access_type, **tup[2]))
|
||||
for tup in func_tup
|
||||
)
|
||||
# the True/False tuple goes into evalstring, which combines them
|
||||
# with AND/OR/NOT in order to get the final result.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue