From f6690f2013b2fdedbc8dc20b061aa01134c497f4 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Fri, 19 Apr 2024 18:48:19 +0200 Subject: [PATCH] Remove inappropriate "Quit" button --- partitioncloud/templates/albums/album.html | 2 +- partitioncloud/templates/groupe/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/partitioncloud/templates/albums/album.html b/partitioncloud/templates/albums/album.html index cd52624..f5db1e4 100644 --- a/partitioncloud/templates/albums/album.html +++ b/partitioncloud/templates/albums/album.html @@ -53,7 +53,7 @@ {% endif %} {% if not_participant %} {{ _("Join") }} - {% elif album.users | length > 1 %} + {% elif g.user and not not_participant %} {{ _("Quit") }} {% endif %} {{ _("Share") }} diff --git a/partitioncloud/templates/groupe/index.html b/partitioncloud/templates/groupe/index.html index e4867c8..108bf5b 100644 --- a/partitioncloud/templates/groupe/index.html +++ b/partitioncloud/templates/groupe/index.html @@ -45,7 +45,7 @@