Need to add to the IF here, to check if the user has the update_group_entries permission, and only then do we check if the entry belongs to a group that the user has permission to see entries for.