Revision 2b7a87d7 snf-astakos-app/astakos/im/forms.py
b/snf-astakos-app/astakos/im/forms.py | ||
---|---|---|
960 | 960 |
if self.instance.can_change_password(): |
961 | 961 |
self.password_change = True |
962 | 962 |
else: |
963 |
self.fields_list.remove('old_password') |
|
964 |
self.fields_list.remove('new_password1') |
|
965 |
self.fields_list.remove('new_password2') |
|
966 |
self.fields_list.remove('change_password') |
|
963 | 967 |
del self.fields['change_password'] |
964 | 968 |
|
969 |
|
|
965 | 970 |
if EMAILCHANGE_ENABLED: |
966 | 971 |
self.email_change = True |
967 | 972 |
else: |
968 | 973 |
self.fields_list.remove('new_email_address') |
974 |
self.fields_list.remove('change_email') |
|
969 | 975 |
del self.fields['change_email'] |
970 | 976 |
|
971 | 977 |
|
Also available in: Unified diff