hide content from a usergroup in joomla

Monday, May 5, 2014

I'm trying to hide content from a certain user group with ID 14 in Joomla but it isn't happening.

Any idea where i could have gone wrong?

<?php if ( $system->my->id != 14 ) { ?>
content here
<?php } ?>

Somehow it isn't detecting the user group and shows up for everybody!