Skip to content

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

Disable Update button for same user

michal3a91d6952797
diff --git a/templates/dashboard/customer/detail.html b/templates/dashboard/customer/detail.html
index 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>