Reproduce latest PR fix for develop
This commit is contained in:
parent
6b62fc9067
commit
fcb6f19287
1 changed files with 2 additions and 0 deletions
|
|
@ -555,6 +555,8 @@ def inside(accessing_obj, accessed_obj, *args, **kwargs):
|
||||||
want also nested objects to pass the lock, use the `insiderecursive`
|
want also nested objects to pass the lock, use the `insiderecursive`
|
||||||
lockfunc.
|
lockfunc.
|
||||||
"""
|
"""
|
||||||
|
if hasattr(accessed_obj, "obj"):
|
||||||
|
accessed_obj = accessed_obj.obj
|
||||||
return accessing_obj.location == accessed_obj
|
return accessing_obj.location == accessed_obj
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue