$getperms=getpermissions($thread['forumid'],-1,-1,$foruminfo['parentlist']); if (!$getperms['canview']) { show_nopermission(); }