From febc8a4c36bbe09b8e0a1abaf995a90260aad543 Mon Sep 17 00:00:00 2001 From: Camille Simiand <camille.simiand@tetras-libre.fr> Date: Wed, 16 Feb 2022 17:01:17 +0100 Subject: [PATCH] Fix user cannot remove author as editor --- templates/capsule/editors/list_editors.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/capsule/editors/list_editors.html.twig b/templates/capsule/editors/list_editors.html.twig index de7ba00..4a04b89 100644 --- a/templates/capsule/editors/list_editors.html.twig +++ b/templates/capsule/editors/list_editors.html.twig @@ -46,7 +46,7 @@ {% for editor in editors %} <li class="text-capitalize text-secondary list-unstyled p-1"> {{ editor.getFirstName() }} {{ editor.getLastName() }} - {% if editor is not same as current_user %} + {% if editor is not same as capsule.getCreationAuthor() %} - <a href="/capsule/{{ capsule.getId() }}/editors/{{ editor.getId() }}/remove" class="remove-link"> {{ 'editors.remove.editor.link'|trans }} @@ -58,7 +58,7 @@ <h5> {{ 'editors.pending_editors_title'|trans }} </h5> - <ul class="ps-1"> + <ul class="ps-0"> {% for pending_editor in pending_editors %} <li class="text-secondary list-unstyled p-1"> {{ pending_editor.getEmail() }} -- GitLab