MyBB Community Forums

Full Version: [F] Users cannot view threads when permission "Can Post Threads?" is unchecked. [C-Chris]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Try this. In admin/inc/functions.php find:

$query2 = $db->simple_select("forumpermissions", "canviewthreads,candlattachments,canratethreads,caneditposts,candeleteposts,candeletethreads,caneditattachments,canvotepolls,cansearch", "fid='{$fid}' AND gid='{$usergroup['gid']}'", array('limit' => 1));
$existing_permissions = $db->fetch_array($query2);

add after

if(!$existing_permissions)
{
	$query2 = $db->simple_select("usergroups", "canviewthreads,candlattachments,canratethreads,caneditposts,candeleteposts,candeletethreads,caneditattachments,canvotepolls,cansearch", "gid='{$usergroup['gid']}'", array('limit' => 1));
	$existing_permissions = $db->fetch_array($query2);
}
Yep, that seems to work fine Smile
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
Thanks Ryan Smile
Pages: 1 2