discovering the group

Permalink
"Hey"
I could not get the $u->inGroup('groupname') to be recognized. I saw that the user group was an object but thought the inGroup method would handle it, but it never did. Then I found the $u->getUserGroups method and ran a foreach/if to get it's occurrence. All users (from super down) had this problem though none of them show more than one group in the Dashboard as assigned to each. I suppose it's more robust this way anyway, but I'm concerned if it's not a bigger problem with the advanced permissions; which, is in the config file on my root main domain - with C5 on a sub-domain website. Is that right and I'm just freakin'? I struggled for awhile on the inGroup thing - even noticing the user.php has it as: inGroup($g, $joinType = null) but the documentation: inGroup($g) - I thought that $joinType would handle the object but I guess not.

I just get concerned that I'll write a bunch of stupid code and work against myself - especially when C5 probably already made a method for it. That's why I don't like the foreach/if thing and a bit perplex why the more appropriate inGroup didn't work.

Thanks

Ricalsin