Commit adbfe131 authored by Ondřej Pavlica's avatar Ondřej Pavlica
Browse files

Merge branch 'feature/balga/userFix' into 'main'

self editing not allowed

See merge request !49
parents f0eafff3 cd691553
Pipeline #142384 passed with stages
in 2 minutes and 3 seconds
...@@ -29,7 +29,10 @@ ...@@ -29,7 +29,10 @@
<td th:text="${user.lastName}">Last name</td> <td th:text="${user.lastName}">Last name</td>
<td th:text="${user.email}">Email</td> <td th:text="${user.email}">Email</td>
<td th:text="${user.roles}">Roles</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> </tr>
</tbody> </tbody>
</table> </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