Right with a bit of help from Stelthius I got this sorted.
Find this
Code:
// check if there is a forum password and if so, ensure the user has it set
Add Above it
Code:
if (!is_member_of($vbulletin->userinfo, 5,6,7))
{
if ( !$vbulletin->db->query_first ( "SELECT postid FROM " . TABLE_PREFIX . "post WHERE userid='".$vbulletin->userinfo[userid]."' AND threadid=$threadinfo[threadid]" ) ) :
eval('print_output("' . fetch_template('MARCO1 Cant See Attach') . '");');
endif ;
Find this
Add above it
All working If you need to add any additional usergroups just add them onto to the bit of code that's highlighted in Red separate them with
,