Skip to content
Snippets Groups Projects
Commit febc8a4c authored by Camille Simiand's avatar Camille Simiand
Browse files

Fix user cannot remove author as editor

parent 75abc02a
No related branches found
No related tags found
1 merge request!60tuleap-183-user-should-not-be-able-to-remove-the-author-from-editors-list
Pipeline #827 passed
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
{% for editor in editors %} {% for editor in editors %}
<li class="text-capitalize text-secondary list-unstyled p-1"> <li class="text-capitalize text-secondary list-unstyled p-1">
{{ editor.getFirstName() }} {{ editor.getLastName() }} {{ 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"> <a href="/capsule/{{ capsule.getId() }}/editors/{{ editor.getId() }}/remove" class="remove-link">
{{ 'editors.remove.editor.link'|trans }} {{ 'editors.remove.editor.link'|trans }}
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<h5> <h5>
{{ 'editors.pending_editors_title'|trans }} {{ 'editors.pending_editors_title'|trans }}
</h5> </h5>
<ul class="ps-1"> <ul class="ps-0">
{% for pending_editor in pending_editors %} {% for pending_editor in pending_editors %}
<li class="text-secondary list-unstyled p-1"> <li class="text-secondary list-unstyled p-1">
{{ pending_editor.getEmail() }} {{ pending_editor.getEmail() }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment