From bb1ce6514e41cc498a7030dcd485d65359373127 Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Wed, 18 Jun 2014 19:05:02 +0200 Subject: [PATCH] =?UTF-8?q?P=C5=99i=20vytv=C3=A1=C5=99en=C3=AD=20implicitn?= =?UTF-8?q?=C3=ADch=20rol=C3=AD=20je=20u=20role=20USER=20nastaveno=20vyhod?= =?UTF-8?q?nocov=C3=A1n=C3=AD=20pr=C3=A1v=20pro=20st=C5=99ediska=20a=20kom?= =?UTF-8?q?ise.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/info/bukova/isspst/AppInitListener.java | 4 ++++ 1 file changed, 4 insertions(+) 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); } }