mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 03:57:17 +02:00
Fix lockhandler singleton implmentation with a dummyobj
This commit is contained in:
parent
c9ecd3b997
commit
2f985c882b
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