mirror of
https://github.com/evennia/evennia.git
synced 2026-03-18 22:06:30 +01:00
Fixed a bug that caused superuser status to be cached only once for characters, even if the player was not yet connected.
This commit is contained in:
parent
29e313492f
commit
bbdf2e0896
3 changed files with 17 additions and 15 deletions
|
|
@ -256,6 +256,10 @@ class ObjectDB(TypedObject):
|
|||
if inherits_from(player, TypeClass):
|
||||
player = player.dbobj
|
||||
set_field_cache(self, "player", player)
|
||||
# we must set this here or superusers won't be able to
|
||||
# bypass lockchecks unless they start the game connected
|
||||
# to the character in question.
|
||||
self.locks.cache_lock_bypass(self)
|
||||
#@player.deleter
|
||||
def __player_del(self):
|
||||
"Deleter. Allows for del self.player"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue