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