Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Always enable user's own email address

Unknown085b31d2e1a9
diff --git a/saleor/dashboard/staff/forms.py b/saleor/dashboard/staff/forms.py
index ca1261419b..76c524832a 100644
--- a/saleor/dashboard/staff/forms.py
+++ b/saleor/dashboard/staff/forms.py
@@ -47,8 +47,9 @@ class StaffForm(forms.ModelForm):
and self.instance.is_staff):
self.fields['email'].disabled = True
- # Disable users editing their own following fields
+ # Disable users editing their own following fields except for email
if self.user == self.instance:
+ self.fields['email'].disabled = False
self.fields['user_permissions'].disabled = True
self.fields['is_active'].disabled = True
self.fields['is_staff'].disabled = True