Discuz点评绕过权限设置的解决方案
修复方法source/include/post/post_newreply.php搜索
if(!$post) {
showmessage('post_nonexistence', NULL);
}替换为
if(!$post || !($_G['setting']['commentpostself'] || $post['authorid'] != $_G['uid']) || !(($post['first'] && $_G['setting']['commentfirstpost'] && in_array($_G['group']['allowcommentpost'], array(1, 3)) || (!$post['first'] && in_array($_G['group']['allowcommentpost'], array(2, 3)))))) {
showmessage('postcomment_error');
}
提交保存
页:
[1]