WebErrors errors = WebErrors.create(request);
if (cid == null) {
return errors;
}
Channel c = channelMng.findById(cid);
if (errors.ifNotExist(c, Channel.class, cid)) {
return errors;
}
Integer siteId = CmsUtils.getSiteId(request);
if (!c.getSite().getId().equals(siteId)) {
errors.notInSite(Channel.class, cid);