Skip to content

Commit

Permalink
fix: product roles label
Browse files Browse the repository at this point in the history
  • Loading branch information
endalkh committed Sep 8, 2024
1 parent 8465285 commit 500249a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/product_management/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def can_delete_challenge(self, person):
try:
product_role_assignment = ProductRoleAssignment.objects.get(person=person, product=product)

if product_role_assignment.role == ProductRoleAssignment.CONTRIBUTOR:
if product_role_assignment.role == ProductRoleAssignment.ProductRoles.CONTRIBUTOR:
return False

except ProductRoleAssignment.DoesNotExist:
Expand Down

0 comments on commit 500249a

Please sign in to comment.