try {
boolean isUserMod = dao.checkMod(Integer.parseInt(
messageForm.getFid()), user);
Forum currForum = dao.getForumInfo(Integer.parseInt(
messageForm.getFid()));
// check access rights if forum invisible
if ((currForum.getLocked() == IConst.Forum.STATUS_INVISIBLE) &&
(user.getStatus() < Integer.parseInt(
Configurator.getInstance().get(IConst.CONFIG.INVADER1)))) {
return (mapping.findForward(IConst.TOKEN.DENIED));
}
Topic currThread = dao.getThreadInfo(Integer.parseInt(
messageForm.getTid()));
// check user access rights if current topic or completely forum is locked
if (((currThread.getLocked() == IConst.Topic.STATUS_LOCKED) ||
(currForum.getLocked() == IConst.Forum.STATUS_COMPLETELY_LOCKED)) &&
(!isUserMod)) {
return (mapping.findForward(IConst.TOKEN.DENIED));
}
Message mess = dao.getMessage(messageForm.getMid());