Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Users cannot view threads when permission "Can Post Threads?" is unchecked. [C-Chris]
#11
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);
}


Messages In This Thread
RE: Users cannot view threads when permission "Can Post Threads?" is unchecked. - by Ryan Gordon - 01-29-2009, 07:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)