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:
Ahmed Charles 2015-10-23 23:07:22 +00:00 committed by Griatch
parent f0c27d80b9
commit c220d5eeeb

View file

@ -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.