Při vytváření implicitních rolí je u role USER nastaveno vyhodnocování
práv pro střediska a komise.
This commit is contained in:
@@ -56,6 +56,10 @@ public class AppInitListener implements ServletContextListener {
|
|||||||
for (Role role : Constants.ROLES)
|
for (Role role : Constants.ROLES)
|
||||||
{
|
{
|
||||||
if (roleService.getRoleByAuthority(role.getAuthority()) == null) {
|
if (roleService.getRoleByAuthority(role.getAuthority()) == null) {
|
||||||
|
if (role.getAuthority().equals(Constants.ROLE_USER)) {
|
||||||
|
role.setCentre(true);
|
||||||
|
role.setWorkgroup(true);
|
||||||
|
}
|
||||||
roleService.add(role);
|
roleService.add(role);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user