diff --git a/src/main/java/info/bukova/isspst/AppInitListener.java b/src/main/java/info/bukova/isspst/AppInitListener.java index cee7f5b8..3ced19cd 100644 --- a/src/main/java/info/bukova/isspst/AppInitListener.java +++ b/src/main/java/info/bukova/isspst/AppInitListener.java @@ -56,6 +56,10 @@ public class AppInitListener implements ServletContextListener { for (Role role : Constants.ROLES) { if (roleService.getRoleByAuthority(role.getAuthority()) == null) { + if (role.getAuthority().equals(Constants.ROLE_USER)) { + role.setCentre(true); + role.setWorkgroup(true); + } roleService.add(role); } }