diff --git a/composer.lock b/composer.lock index afe1129fb..e9cbd85b9 100644 --- a/composer.lock +++ b/composer.lock @@ -3362,7 +3362,8 @@ "2329253 - Allow the ChangedItem to skip updating the entity's \"changed\" timestamp when synchronizing (f.e. when migrating)": "https://www.drupal.org/files/issues/2022-12-07/2329253-97.patch", "3052115 - Mark an entity as 'syncing' during a migration update": "https://www.drupal.org/files/issues/2022-06-16/3052115-53.patch", "2907760 - Notice: Undefined index: default in Drupal\\views\\Plugin\\views\\PluginBase->setOptionDefaults()": "https://www.drupal.org/files/issues/2022-05-26/2907760-11-9.3.x.patch", - "3183509 - Use the user display name instead of the username on the user authoring information in the node edit form": "https://git.drupalcode.org/project/drupal/-/merge_requests/352.patch" + "3183509 - Use the user display name instead of the username on the user authoring information in the node edit form": "https://git.drupalcode.org/project/drupal/-/merge_requests/352.patch", + "Content moderation does not sanity check original entity moderate state is present / exists": "https://www.drupal.org/files/issues/2022-06-09/add-sanity-checking-to-content-moderation-original-value-checks.patch" } }, "autoload": { @@ -4687,6 +4688,10 @@ "name": "msnassar", "homepage": "https://www.drupal.org/user/1199630" }, + { + "name": "naveenvalecha", + "homepage": "https://www.drupal.org/user/2665733" + }, { "name": "ronaldtebrake", "homepage": "https://www.drupal.org/user/2314038" @@ -5433,7 +5438,7 @@ "extra": { "drupal": { "version": "2.1.1", - "datestamp": "1681722499", + "datestamp": "1689354615", "security-coverage": { "status": "covered", "message": "Covered by Drupal's security advisory policy" @@ -5928,6 +5933,10 @@ "name": "amitaibu", "homepage": "https://www.drupal.org/user/57511" }, + { + "name": "bluegeek9", + "homepage": "https://www.drupal.org/user/1286304" + }, { "name": "fubhy", "homepage": "https://www.drupal.org/user/761344" diff --git a/composer.patches.json b/composer.patches.json index 644d909ff..f40afe70c 100644 --- a/composer.patches.json +++ b/composer.patches.json @@ -11,7 +11,8 @@ "2329253 - Allow the ChangedItem to skip updating the entity's \"changed\" timestamp when synchronizing (f.e. when migrating)": "https://www.drupal.org/files/issues/2022-12-07/2329253-97.patch", "3052115 - Mark an entity as 'syncing' during a migration update": "https://www.drupal.org/files/issues/2022-06-16/3052115-53.patch", "2907760 - Notice: Undefined index: default in Drupal\\views\\Plugin\\views\\PluginBase->setOptionDefaults()": "https://www.drupal.org/files/issues/2022-05-26/2907760-11-9.3.x.patch", - "3183509 - Use the user display name instead of the username on the user authoring information in the node edit form": "https://git.drupalcode.org/project/drupal/-/merge_requests/352.patch" + "3183509 - Use the user display name instead of the username on the user authoring information in the node edit form": "https://git.drupalcode.org/project/drupal/-/merge_requests/352.patch", + "Content moderation does not sanity check original entity moderate state is present / exists": "https://www.drupal.org/files/issues/2022-06-09/add-sanity-checking-to-content-moderation-original-value-checks.patch" }, "drupal/address": { "2812659 - Integrate Address with Search API (adds a Search API processor to convert country code to full country name)": "https://www.drupal.org/files/issues/2021-06-14/integrate-address-searchapi-2812659-57_0.patch", diff --git a/tests/features/users_privacy.feature b/tests/features/users_privacy.feature index 0a8acdc66..6a566280d 100644 --- a/tests/features/users_privacy.feature +++ b/tests/features/users_privacy.feature @@ -81,3 +81,25 @@ Feature: Personal user information should not be visible to not logged in users. Given I am an anonymous user And I visit the "Business development" overview page And I should not see the text "behat_user group_author_testing" in the "content" region + + Scenario: Check if information of "Story" author is visible to authorised and anonymous users. + Given users: + |name | field_first_name | field_last_name |mail | roles | + |behat | behat_user | story_author_testing |member@behat.localhost | administrator | + Given the user "behat" has profile with data: + |field_body | field_vocab_topic_expertise | field_vocab_topic_interest |field_vocab_geo | + |behat profile body | Biotechnology,Energy,Finance | Biotechnology,Energy,Finance |203,204,205 | + Given I am logged in as "behat" + And the following image: + | name | file | alt | title | + | Cat Image | cat.jpg | Alternative text 1 | cat | + Given "story" content: + | title | field_body | field_header_visual | field_image | field_introduction | field_vocab_program_type | field_vocab_story_type | field_vocab_topics | author | moderation_state | + | Behat Story | story body | Cat Image | Cat Image | story introduction | EIC & EIT | Events | Business development | behat | published | + And I run cron + And I visit the "Business development" overview page + And I should see the link "behat_user story_author_testing" in the "content" region + Given I am not logged in + Given I am an anonymous user + And I visit the "Business development" overview page + And I should not see the text "behat_user story_author_testing" in the "content" region