Skip to content
Snippets Groups Projects
Commit fd5f40c9 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

fix arg

parent b27ee1c7
No related branches found
No related tags found
No related merge requests found
Pipeline #17174 passed
......@@ -129,7 +129,7 @@ class ParentContractInlineMixin:
if (
obj is not None
and not request.user.has_perm("contracts.edit_when_approved")
and not self.get_parent_object_is_editable()
and not self.get_parent_object_is_editable(obj)
):
return False
......@@ -142,7 +142,7 @@ class ParentContractInlineMixin:
if (
obj is not None
and not request.user.has_perm("contracts.delete_when_approved")
and not self.get_parent_object_is_editable()
and not self.get_parent_object_is_editable(obj)
):
return False
......
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