Yeah I get all that. But when a user clicks on something called "My Panel" and is presented with the words "This user has not joined any Groups" (because he only belongs to a group he created), it's confusing and misleading to users. A much better solution would've been:
- by default, show ALL groups that user belongs to, and style the ones he owns differently
- show a link to Groups the user owns (this already exists and works fine)
- show a link to Groups the user has joined (this is the current default behaviour)
I think that kind of arrangement would be far more useful to everyone. Or better yet, instead of all these extra links, just add a filter in a drop-down box.
I've been trying to figure out where to change the query you referred to, but so far no luck.