Skip to content
Snippets Groups Projects
Verified Commit 72f3e743 authored by magicfelix's avatar magicfelix
Browse files

Fix commenting on Persons with no user

parent fc8b9edd
Branches master
No related tags found
No related merge requests found
Pipeline #97993 failed
...@@ -284,6 +284,7 @@ class CommentForm(forms.ModelForm): ...@@ -284,6 +284,7 @@ class CommentForm(forms.ModelForm):
self.allowed_persons_with_review = ( self.allowed_persons_with_review = (
AbiPerson.objects.filter(member_of__in=self.allowed_groups_with_review) AbiPerson.objects.filter(member_of__in=self.allowed_groups_with_review)
.exclude(pk=self.person.pk) .exclude(pk=self.person.pk)
.exclude(person__user=None)
.distinct() .distinct()
) )
allowed_persons = self.allowed_persons | self.allowed_persons_with_review allowed_persons = self.allowed_persons | self.allowed_persons_with_review
......
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