MyBB Community Forums

Full Version: [B] Rating column header disappears on "cannot view thread"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
1. Add an announcement (modcp.php?action=new_announcement) to a forum "Forum-A" or whatever Wink
2. ACP > Set permissions for admin group such as they can view "Forum-A", but cannot view threads within.
3. Visit the forum. The "Rating" tcat is not shown.

This is obviously same for all usergroups, not just admin.
In forumdisplay.php, find (around 643):

	if($foruminfo['allowtratings'] != 0)
	{
		eval("\$rating = \"".$templates->get("forumdisplay_announcement_rating")."\";");
		$lpbackground = "trow2";
	}

Replace with:

	if($foruminfo['allowtratings'] != 0 && $fpermissions['canviewthreads'] != 0)
	{
		eval("\$rating = \"".$templates->get("forumdisplay_announcement_rating")."\";");
		$lpbackground = "trow2";
	}
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group
With reverting the fix mentioned by Ryan, this is no longer a problem.

(Splitting topic to solve the template fix).