Modify the new permission check to apply to any entries where user has view form permission. Combined permission logic into a shared function.