Commit 4258783f authored by Christian Djombissi Wameni's avatar Christian Djombissi Wameni

Merge branch 'master' of

parents e5a4002a ba6314eb
Pipeline #10525 failed with stages
in 0 seconds
......@@ -447,7 +447,7 @@ public class UserServiceImpl implements UserService {
public DbUser deleteByUsername(String username) {
User user = getCurrentUser();
if (!user.getUsername().equals(username.toLowerCase())
if (!user.getUsername().equalsIgnoreCase(username)
&& !SecurityContextHolder.getContext().getAuthentication().getAuthorities()
.contains(new SimpleGrantedAuthority("ROLE_ADMIN"))) {
throw new UnauthorizedException();
Markdown is supported
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