Fixes logic error in checking relationships
I had the logic backwards for pending relationships.
This commit is contained in:
parent
4ccbfb6b31
commit
e16506c1df
2 changed files with 4 additions and 4 deletions
|
@ -218,7 +218,7 @@ def clear_cache(user_subject, user_object):
|
|||
"""clear relationship cache"""
|
||||
cache.delete_many(
|
||||
[
|
||||
f"relationship-{user_subject.id}-{user_object.id}",
|
||||
f"relationship-{user_object.id}-{user_subject.id}",
|
||||
f"cached-relationship-{user_subject.id}-{user_object.id}",
|
||||
f"cached-relationship-{user_object.id}-{user_subject.id}",
|
||||
]
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue