Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update comments
NyanKiyoshi5446f9584339
diff --git a/saleor/dashboard/staff/forms.py b/saleor/dashboard/staff/forms.pyindex a9939706bf..3056f7a96a 100644--- a/saleor/dashboard/staff/forms.py+++ b/saleor/dashboard/staff/forms.py@@ -35,7 +35,7 @@ class StaffForm(forms.ModelForm):self.user = kwargs.pop('user')super().__init__(*args, **kwargs)- # Non-superuser couldn't edit superuser's profile+ # Non-superusers shouldn't be able to edit a superuser's profileif self.instance.is_superuser and not self.user.is_superuser:self.fields['email'].disabled = Trueself.fields['user_permissions'].disabled = True