Just tried and ```Hostgroup.my_groups``` seems to work well when ```User.current == User.admin```.
I shortened this a little by getting ride of the ternaries as they are unnecessary