Commit cd691553 authored by Jakub Balga's avatar Jakub Balga
Browse files

self editing not allowed

parent f0eafff3
Pipeline #142243 passed with stages
in 1 minute and 56 seconds
......@@ -29,7 +29,10 @@
<td th:text="${user.lastName}">Last name</td>
<td th:text="${user.email}">Email</td>
<td th:text="${user.roles}">Roles</td>
<td> <a th:href="@{/user/edit(id=${user.id})}">Edit</a> | <a href="#" th:attr="data-id=${user.id}" onclick="deleteAndReload(this)">Delete</a></td>
<td th:if='${model.currentUser} != ${user}'>
<a th:href="@{/user/edit(id=${user.id})}">Edit</a> | <a href="#" th:attr="data-id=${user.id}" onclick="deleteAndReload(this)">Delete</a>
</td>
<td th:if='${model.currentUser} == ${user}'>logged in</td>
</tr>
</tbody>
</table>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment