mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 17:26:32 +01:00
Fix lockhandler singleton implmentation with a dummyobj
This commit is contained in:
parent
b810ca8a1c
commit
5edea757c9
1 changed files with 5 additions and 1 deletions
|
|
@ -544,7 +544,11 @@ class LockHandler(object):
|
|||
# convenience access function
|
||||
|
||||
# dummy to be able to call check_lockstring from the outside
|
||||
_LOCK_HANDLER = LockHandler()
|
||||
|
||||
class _ObjDummy:
|
||||
lock_storage = ''
|
||||
|
||||
_LOCK_HANDLER = LockHandler(_ObjDummy())
|
||||
|
||||
|
||||
def check_lockstring(self, accessing_obj, lockstring, no_superuser_bypass=False,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue