permissions query update

I updated the permissions query to only return groups a user is approved for, not all groups requested.