Skip to content
Snippets Groups Projects
Verified Commit eff4b515 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix is_own_profile predicate

parent f55a7100
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,9 @@ def has_abi_person(user): ...@@ -16,7 +16,9 @@ def has_abi_person(user):
@predicate @predicate
def is_own_profile(user, obj): def is_own_profile(user, obj):
return user.person.abi_person == obj.profile.person if not obj:
return True
return user.person == obj.person.person
# View abi person list # View abi person list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment