Fixes template tag to check if object is related to a user in given group.