ohhh damn... I have read my explanation and I think that I explained wrong again :/
very sorry mate...
I know that your code works fine! I tried with usergroupid 6 that is administrators and only admins see the link...
But is not what I want lol.
Let me try explain again:
I want to show the link to everyone! but If the user belongs to specific usergroups, the link will appear (to everyone), If the user dont belongs to that specific usergroups, the link will not appear to anyone.
For example, please check:
http://screensnapr.com/e/g8ii2H.jpg
In link above, only the user Ruimaisluisa belongs to the usergroup that I want.
And Green_Boy dont belongs.
But as you can see, the link that says "As minhas
fotos" appears to both.
I want to appear only to user Ruimaisluisa, for example