找到:app/Api/Controller/Threads ListThreadsV2Controller.php
找到:
$cannotViewPosts = !in_array('thread.viewPosts', $permissions);
$cannotFreeViewPosts = !in_array('thread.freeViewPosts.' . $thread['type'], $permissions);
修改为
$cannotViewPosts = !in_array('category'.$thread["category_id"].'.thread.viewPosts', $permissions);
$cannotFreeViewPosts = !in_array('category'.$thread["category_id"].'.thread.freeViewPosts.' . $thread['type'], $permissions);
本方法为临时解决办法,如还是出现相关问题,可到DiscuzQ官方论坛进行反馈。
原文地址:http://www.5che2.com/