Skip to content

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

Fix possibility to remove your own account

michald2e6be1afcfa
diff --git a/templates/dashboard/staff/detail.html b/templates/dashboard/staff/detail.html
index 1dc1429cf8..d774a76cd5 100644
--- a/templates/dashboard/staff/detail.html
+++ b/templates/dashboard/staff/detail.html
@@ -38,7 +38,7 @@
{% endblock %}
{% block header_extra %}
- {% if staff_member.pk %}
+ {% if user != staff_member %}
<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">
<svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />
</a>