public class ManageChannelFilter implements Filter {
public void doFilter(ServletRequest req, ServletResponse res,
FilterChain filterChain) throws IOException, ServletException {
HttpServletRequest request = (HttpServletRequest) req;
User user = WebUtil.getUser(request);
if (user.getGroup()==null||user.getGroup().getManageChannel()!= true) {
HttpServletResponse response = (HttpServletResponse) res;
String ctp=request.getSession().getServletContext().getContextPath();
response.sendRedirect(ctp+"/util/403");
return;
}