Commit 7fc5ab1d by Riku Silvola

Merge branch 'master' of codecrew.fi:bortal

2 parents d1d18d22 393763a3
...@@ -39,10 +39,10 @@ public class RoleBean implements RoleBeanLocal { ...@@ -39,10 +39,10 @@ public class RoleBean implements RoleBeanLocal {
// private static final String PUBLIC_ROLE_NAME = // private static final String PUBLIC_ROLE_NAME =
// BeanRole.ANONYMOUS.toString(); // BeanRole.ANONYMOUS.toString();
@SuppressWarnings("unused") @SuppressWarnings("unused")
private static final Logger logger = LoggerFactory.getLogger(RoleBean.class); private static final Logger logger = LoggerFactory.getLogger(RoleBean.class);
@Resource @Resource
private SessionContext sc; private SessionContext sc;
@EJB @EJB
...@@ -172,12 +172,6 @@ public class RoleBean implements RoleBeanLocal { ...@@ -172,12 +172,6 @@ public class RoleBean implements RoleBeanLocal {
} }
@Override @Override
@RolesAllowed(UserPermission.S_READ_ROLES)
public List<Role> getRoles(EventUser user) {
return roleFacade.findForUser(user);
}
@Override
@RolesAllowed(UserPermission.S_WRITE_ROLES) @RolesAllowed(UserPermission.S_WRITE_ROLES)
public void saveRoles(EventUser usr, List<Role> usersRoles) { public void saveRoles(EventUser usr, List<Role> usersRoles) {
......
...@@ -34,6 +34,4 @@ public interface RoleBeanLocal { ...@@ -34,6 +34,4 @@ public interface RoleBeanLocal {
public void saveRoles(EventUser usr, List<Role> usersRoles); public void saveRoles(EventUser usr, List<Role> usersRoles);
List<Role> getRoles(EventUser user);
} }
...@@ -130,6 +130,7 @@ public class UserView extends GenericCDIView { ...@@ -130,6 +130,7 @@ public class UserView extends GenericCDIView {
usersRoles = rolebean.getRoles(getSelectedUser()); usersRoles = rolebean.getRoles(getSelectedUser());
} }
return usersRoles; return usersRoles;
} }
public String crop() public String crop()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!