Skip to content

Commit 3624e47

Browse files
committed
add validation to special perms on account
1 parent 4561aba commit 3624e47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/example/usermanagement/services/AccountService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ public List<AccountAuthoritiesEditResponse> editAuthorities(List<EditAuthorities
177177
List<AccountAuthoritiesEditResponse> responses = new ArrayList<>();
178178

179179
for (EditAuthoritiesRequest accountChangeRequest : requestBody) {
180+
accountChangeRequest.validate();
181+
180182
AccountAuthoritiesEditResponse response = new AccountAuthoritiesEditResponse();
181183
response.setEmail(accountChangeRequest.getEmail());
182184

0 commit comments

Comments
 (0)