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:
parent
0b3cf0a1af
commit
6a2cf42e5c
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue