(SOLVED) Hide the Communications tab from some user for a particular companies only

Hi all,

I would like to hide the Communications tab for a couple of companies - The tab should be visible to certain users only

I tried a script based on this post: http://www.immenseserve.com/2014/11/01/tab-visibility-control-using-client-side-api/

The script seems to work is I hide the communications tab in general but when I add the additional check on companyID it stops working
I've tried various versions of this script, latest being:

<script>
crm.ready (function ()
{
if (CurrentUser.user_userid!= 100 && CRM.GetContextInfo("Company","Comp_CompanyID") == 123456 )
crm.hideTab ('tabnames','Communications');
else
crm.showTab ('tabnames', 'Communications');
});
</script>

Ideally the script would hide the communications tab for company 123456 for all users except 100, 101, 102

EAD