Don't allow users to edit the 'active' value for unknown-email-* addresses. Related to #2696. Commit ready for merge.

- Legacy-Id: 16106
This commit is contained in:
Robert Sparks 2019-03-27 09:15:06 +00:00
parent 0b3cf0a1af
commit 6a2cf42e5c

View file

@ -200,7 +200,7 @@ def profile(request):
person = request.user.person
roles = Role.objects.filter(person=person, group__state='active').order_by('name__name', 'group__name')
emails = Email.objects.filter(person=person).order_by('-active','-time')
emails = Email.objects.filter(person=person).exclude(address__startswith='unknown-email-').order_by('-active','-time')
new_email_forms = []
if request.method == 'POST':