Commit 3c5a1bf1 authored by Denis's avatar Denis Committed by Denis Ligin

убрал лишнюю фильтрацию в методе получения ролей

parent 5aec2d63
......@@ -35,7 +35,6 @@ public class SecurityContextUtils {
.map(GrantedAuthority::getAuthority)
.map(role -> role.replace("ROLE_", ""))
.filter(role -> role.contains(PROJECT_ROLE_SPLITTER))
.filter(role->role.startsWith("project"))
.collect(Collectors.toMap(
role -> role.split(PROJECT_ROLE_SPLITTER)[0],
role -> new ArrayList<>(List.of(role.split(PROJECT_ROLE_SPLITTER)[1])),
......
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