From 8d3a31d0124eb851b6cb6ff65b9c14fbfca17ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20=C3=81valos?= Date: Sun, 31 Mar 2024 20:17:26 -0600 Subject: [PATCH] Allow non-admin users to link ListenBrainz account --- supysonic/templates/profile.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/supysonic/templates/profile.html b/supysonic/templates/profile.html index ecc0f64..6be5379 100644 --- a/supysonic/templates/profile.html +++ b/supysonic/templates/profile.html @@ -90,12 +90,20 @@ {% if user.listenbrainz_session %}
+ {% if request.user.id == user.id %} + Unlink + {% else %} Unlink + {% endif %}
{% else %}
+ {% if request.user.id == user.id %} + + {% else %} + {% endif %}
{% endif %}