//public static bool NeedAudit(Int32 fid, Int32 modnewposts, int useradminid, int userid, UserGroup userGroup) //{ // return useradminid != 1 && !Moderators.IsModer(useradminid, userid, fid) && (Scoresets.BetweenTime(GeneralConfigInfo.Current.Postmodperiods) || modnewposts == 1 || userGroup != null && userGroup.ModNewTopics == 1); // if (useradminid == 1) return false; // if (Moderators.IsModer(useradminid, userid, fid)) return false; // if (Scoresets.BetweenTime(GeneralConfigInfo.Current.Postmodperiods)) return true; // if (modnewposts == 1) return true; // if (userGroup != null && userGroup.ModNewPosts == 1) return true; // return false; //} //public static bool PostReply(String permuserlist, String replyperm, int userid, UserGroup usergroupinfo, TopicInfo topic) //{ // bool result = usergroupinfo.Is管理团队; // if (topic.Closed == 0) // { // if (userid > -1 && Forums.AllowReplyByUserID(permuserlist, userid)) return true; // if (replyperm.IsNullOrEmpty()) // { // if (usergroupinfo.AllowReply) return true; // } // else // { // if (Forums.AllowReply(replyperm, usergroupinfo.ID)) return true; // } // } // return result; //} public static bool PostReply(IXForum fi, int userid, UserGroup usergroupinfo, Topic topic) { bool result = usergroupinfo.Is管理团队; if (topic.Closed == 0) { if (userid > -1 && Forums.AllowReplyByUserID(fi.Permuserlist, userid)) { return(true); } if (fi.ReplyPerm.IsNullOrEmpty()) { if (usergroupinfo.AllowReply) { return(true); } } else { if (fi.Field.AllowReply(usergroupinfo.ID)) { return(true); } } } return(result); }