return;
}
decoratePage(req);
Member member = (Member) req.getSession().getAttribute("member");
boolean isValid = new BbsRoleHandler().getPermission(member, bbs);
String loginPath = Navigation.getPath("LOGFORM");
if (!isValid) {
res.sendRedirect(loginPath);
return;
}
boolean isRestricted = "notice".equals(bbs) || "techtrend".equals(bbs)
|| "trash".equals(bbs);
if (isRestricted && ("ADD".equals(act) || "REPLY".equals(act))) {
if (member == null) {
res.sendRedirect(loginPath);
return;
} else if (!BbsRoleHandler.isAdmin(member)) {
throw new IOException("NO RIGHT TO WRITE!!!");
}
}
if (member != null) {
Spam.checkSpammer(member.getSid());
}
if ("ADD".equals(act) || "REPLY".equals(act)) {
if (member == null || ("").equals(member.getId())
|| member.getId() == null) {
res.sendRedirect(loginPath);
return;
}
}