mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 07:16:31 +01:00
at_post_puppet should be called after cache_lock_bypass.
at_post_puppet does a look, which results in a perms check, which is wrong for the superuser because the lock bypass is not up to date.
This commit is contained in:
parent
f0c27d80b9
commit
c220d5eeeb
1 changed files with 2 additions and 2 deletions
|
|
@ -244,11 +244,11 @@ class DefaultPlayer(with_metaclass(TypeclassBase, PlayerDB)):
|
|||
# validate/start persistent scripts on object
|
||||
obj.scripts.validate()
|
||||
|
||||
obj.at_post_puppet()
|
||||
|
||||
# re-cache locks to make sure superuser bypass is updated
|
||||
obj.locks.cache_lock_bypass(obj)
|
||||
|
||||
obj.at_post_puppet()
|
||||
|
||||
def unpuppet_object(self, sessid):
|
||||
"""
|
||||
Disengage control over an object.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue