minor corrections

This commit is contained in:
Dmitry Isaenko 2024-01-04 19:08:18 +03:00
parent ce9063b87d
commit 443ba9fea9
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ public class UserGenerified {
this.name = user.getUsername(); this.name = user.getUsername();
this.displayName = user.getDisplayname(); this.displayName = user.getDisplayname();
this.athorities = user.getAuthorities(); this.athorities = user.getAuthorities();
athoritiesLost = allRolesList.stream() this.athoritiesLost = allRolesList.stream()
.filter(element -> !athorities.contains(element)) .filter(element -> !athorities.contains(element))
.collect(Collectors.toList()); .collect(Collectors.toList());
} }

View file

@ -27,7 +27,7 @@
Password: Password:
<input type="password" name="password" /> <input type="password" name="password" />
</p> </p>
<br /><br /><b>Roles:</b> <b>Roles:</b>
<div th:each="athorities : ${user.athorities}"> <div th:each="athorities : ${user.athorities}">
<input name="athorities" type="checkbox" th:value="${athorities.id}" th:checked="true" /> <input name="athorities" type="checkbox" th:value="${athorities.id}" th:checked="true" />
<span th:text="${athorities.name}"></span><br /> <span th:text="${athorities.name}"></span><br />