Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Disable Update button for same user
michal3a91d6952797
diff --git a/templates/dashboard/customer/detail.html b/templates/dashboard/customer/detail.htmlindex 4baf5e6ba7..9356756bc1 100644--- a/templates/dashboard/customer/detail.html+++ b/templates/dashboard/customer/detail.html@@ -104,7 +104,7 @@{% csrf_token %}{{ form|materializecss }}<div class="card-action right-align">- <button type="submit" class="btn waves-effect waves-light" {% if not user.is_superuser %}disabled{% endif %}>+ <button type="submit" class="btn waves-effect waves-light" {% if not user.is_superuser or user == customer %}disabled{% endif %}>{% trans 'Update' context 'Dashboard update action' %}</button></div>