Problem/Motivation

In a multilingual site I set content access to enable translation for Basic page and another content type called "Club".
Permissions for "Translate Basic page content" are set for administrator only.
I need an editor to be able to translate content type "club" so I set permission for editor to "Translate Club content".

Now I am facing two problems:
1. If I do not set the "Create translations" permission for editor, there is no local task for "Translate" when editor views a "Club" node.
2. If I do set the "Create translations" permission for editor, there is a local task for "Translate" and all works fine but this "Translate" local task is also showing on other content types (which are not configured for editor translations).
When editor clicks on "Translate" for other content types (like Basic page) he gets the translation table but not edit or add option i.e you cannot really translate.

Steps to reproduce

  • Enable translation for 2 content types
  • Create a role and give permission to translate 1 of them. Give the user permission to create/edit/delete translations
  • When using that role visit a node of the other content type where you do not have translation permission.
  • You will now see a translation tab there even if you don't have permission to translate into that entity. When you click on the translation tab you will see all translations listed, but you cannot perform any actions.

Proposed resolution

  • Add check for bundle permission to function content_translation_translate_access

Remaining tasks

  • Review patch

User interface changes

  • Translation overview tab is only visible if user have necessary permissions to translate.

API changes

  • None

Data model changes

  • None

Release notes snippet

CommentFileSizeAuthor
#6 content_translation-translate-tab-set-3014209-6.patch895 bytesfabiansierra5191
#8 content_translation-translate-tab-set-3014209-8.patch915 bytesfabiansierra5191
#11 content_translation-translate-tab-set-3014209-11.patch1.3 KBkmetz
#12 content_translation-translate-tab-set-3014209-12.patch1.44 KBkmetz
#15 content_translation-translate-tab-set-3014209-15.patch6.33 KBmatsbla
#15 content_translation-translate-tab-set-3014209-15-combined-2137815-15.patch9.03 KBmatsbla
#15 content_translation-translate-tab-set-3014209-15-no-test-fixes.patch2.81 KBmatsbla
#19 content_translation-translate-tab-set-3014209-15-combined-2137815-19.patch9.05 KBhardik_patel_12
#24 content_translation-translate-tab-set-3014209-15-combined-2137815-24.patch7.68 KBkishor_kolekar
#26 interdiff_19_24.patch6.38 KBkapilv
#28 interdiff_19_24.txt6.38 KBkapilv
#31 content_translation-translate-tab-set-3014209-15-combined-2137815-31.patch8 KBanmolgoyal74
#31 interdiff_24_31.txt930 bytesanmolgoyal74
#33 content_translation-translate-tab-set-3014209-33.patch23.03 KBmsuthars
#33 interdiff-3014209-31-33.txt5.39 KBmsuthars
#35 content_translation-translate-tab-set-3014209-35.patch11.99 KBmsuthars
#39 content_translation-translate-tab-set-3014209-39.patch10.66 KBmsuthars
#39 interdiff-3014209-35-39.txt2.35 KBmsuthars
#40 content_translation-translate-tab-set-3014209-40.patch10.66 KBmsuthars
#40 interdiff-3014209-39-40.txt934 bytesmsuthars
#49 3014209-49.patch6.02 KBmatsbla
#56 Screenshot from 2021-02-08 12-24-29.png40.75 KBpaulocs
#58 interdiff-3014209-49-58.txt1.13 KBprudloff
#58 drupal-3014209-58.patch6.07 KBprudloff
#69 interdiff-3014209-58-69.txt2.54 KBleolandotan
#69 drupal-3014209-69.patch6.98 KBleolandotan
#76 drupal-3014209-76.patch30.5 KBakhil babu
#76 interdiff-69-76.txt26.08 KBakhil babu
#77 drupal-3014209-77-test-only.patch26.72 KBakhil babu
#78 drupal-3014209-78-test-only.patch26.72 KBakhil babu
#80 drupal-3014209-79.patch30.51 KBakhil babu
#80 interdiff-69-79.txt26.08 KBakhil babu
#81 drupal-3014209-81.patch30.96 KBakhil babu
#81 interdiff-79-81.txt730 bytesakhil babu
#82 drupal-3014209-82-test-only.patch26.72 KBakhil babu
#82 drupal-3014209-82.patch30.96 KBakhil babu
#83 drupal-3014209-83.patch31.9 KBakhil babu
#83 drupal-3014209-83-test-only.patch27.67 KBakhil babu
#84 interdiff-69-83.txt27.61 KBakhil babu
#90 drupal-3014209-90.patch31.82 KBtohesi
#91 drupal-3014209-91.patch4.23 KBlarskleiner
#93 3014209-92.patch4.24 KBsakthi_dev
#99 3014209-99.patch2.39 KBinaw

Issue fork drupal-3014209

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

taitai created an issue. See original summary.

taitai’s picture

Status: Active » Closed (outdated)

none

taitai’s picture

Status: Closed (outdated) » Closed (works as designed)
taitai’s picture

Status: Closed (works as designed) » Active
matsbla’s picture

Component: language system » content_translation.module
Issue summary: View changes

I can confirm this behavior. I guess it would make sense to only display the translation tab if you have translation access for the entity + have permission to preform some kind if translation action (create/edit/delete).

fabiansierra5191’s picture

I add this patch, basically only check if the user can edit the entity if can't remove access to the translation overview page.

fabiansierra5191’s picture

Status: Active » Needs review
fabiansierra5191’s picture

StatusFileSize
new915 bytes

Status: Needs review » Needs work
Erso’s picture

I have faced same issue.

Translate any node should be administer right and node based translation, translation edit and delete should be for only that node. (Need same permission options like node permissions. )

kmetz’s picture

The patch in #8 only works for tab display but not for action dropdown buttons on the content overview page.

I created a new patch that

  1. also works for content overviews and
  2. doesn't check for content "create" access, but more precisely for "translate " permission.
kmetz’s picture

Corrected paths in the #11 patch so it applies correctly.

Dirst’s picture

Version: 8.6.x-dev » 8.9.x-dev
Issue tags: +Amsterdam2019

Hi Guys. It is still the issue on drupal 8.9.x so Ill try to rewrite patch for it.

Dirst’s picture

Issue tags: +Needs re-roll

Im changing the version to 8.9.x because this issue is out of date and patch needs re-roll

matsbla’s picture

Here is a new attempt.
We also need to check for 'translate any entity' permission.
I think we should check all bundle permissions inside content_translation_translate_access and remove it from ContentTranslationOverviewAccess.
We also need to fix some tests that are wrong, as they don't have bundle translation permissions + operation translation permissions, but still pass now.
The result can maybe be a little confusing to test manually as there is another related bug here: #2137815-55: InvalidArgumentException: Invalid translation language specified.. It always give users permission to create translations when they have 'translate any entity' permission. I've also uploading a patch for it there, as well as a combined patch for both of them to test here.

matsbla’s picture

Status: Needs work » Needs review
avpaderno’s picture

Issue tags: -needs re-roll +Needs reroll

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

avpaderno’s picture

Issue tags: -Needs reroll

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

masipila’s picture

Hi all,

my use case is closely related to the one described in the issue summary but it's still slightly different.

In my setup, the users are allowed to translate nodes if (and only if) they are allowed to update the node. To determine who is allowed to update the node can obviously be done in many, many different ways.

I'm still on D8 but I believe the behavior is exactly the same as with 9.2.x-dev:

  • I allow 'Create translations' and 'Edit translations' to authenticated users
  • When authenticated users view any translatable node, they can see the Translate local task
  • .. but they can actually create / edit / delete translations if they are allowed to update the entity
  • The fact that they can only create / edit / delete translations of they are allowed to update the entity is a good thing in my use case, but the fact that we show an "empty" Translate local task when they are not allowed to update (and hence translate) the node is redundant.

I don't want to introduce unnecessary scope creep to this issue, but what is ultimately the point of showing the Translate local task?

  • I would assume it should be shown (only) when the user can create / update / delete translations for that entity.
  • Please correct me if I'm going to the woods from this assumption...

Currently access to the Translate local task is determined with this:

function content_translation_translate_access(EntityInterface $entity) {
  $account = \Drupal::currentUser();
  $condition = $entity instanceof ContentEntityInterface && $entity->access('view') &&
    !$entity->getUntranslated()->language()->isLocked() && \Drupal::languageManager()->isMultilingual() && $entity->isTranslatable() &&
    ($account->hasPermission('create content translations') || $account->hasPermission('update content translations') || $account->hasPermission('delete content translations'));
  return AccessResult::allowedIf($condition)->cachePerPermissions()->addCacheableDependency($entity);
}

The proposed patch changes the logic so that we take the 'translate any entity' and the content type / bundle specific permissions into account. But we still show it if $entity->access('view'). Why view, why not update?

Cheers,
Markus

sutharsan’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

Patch #19 no longer applies.

kishor_kolekar’s picture

Status: Needs work » Needs review
StatusFileSize
new7.68 KB

Re-roll for 9.2.x-dev.

Status: Needs review » Needs work
kapilv’s picture

StatusFileSize
new6.38 KB
avpaderno’s picture

Status: Needs work » Needs review
kapilv’s picture

StatusFileSize
new6.38 KB
avpaderno’s picture

Status: Needs review » Needs work
msuthars’s picture

Assigned: Unassigned » msuthars
anmolgoyal74’s picture

Status: Needs work » Needs review
StatusFileSize
new8 KB
new930 bytes

Status: Needs review » Needs work
msuthars’s picture

Assigned: msuthars » Unassigned
Status: Needs work » Needs review
StatusFileSize
new23.03 KB
new5.39 KB

Fixed the test cases. Updated the patch.

msuthars’s picture

Assigned: Unassigned » msuthars
msuthars’s picture

Assigned: msuthars » Unassigned
StatusFileSize
new11.99 KB

Reroll the patch.

sutharsan’s picture

Status: Needs review » Needs work

Some suggestions to improve the readability of the code.

  1. +++ b/core/modules/content_translation/src/ContentTranslationHandler.php
    @@ -285,13 +285,12 @@ public function getTranslationAccess(EntityInterface $entity, $op) {
    +    $bundle_permission = FALSE;
    +    // Check "translate any entity" permission.
    ...
    +      $bundle_permission = TRUE;
         }
    -    $access = AccessResult::allowedIf(($translate_permission && $this->currentUser->hasPermission("$op content translations")))->cachePerPermissions();
    

    Can be simplified into
    $bundle_permission = $this->currentUser->hasPermission('translate any entity');

  2. +++ b/core/modules/content_translation/src/ContentTranslationHandler.php
    @@ -285,13 +285,12 @@ public function getTranslationAccess(EntityInterface $entity, $op) {
    -    $access = AccessResult::allowedIf(($translate_permission && $this->currentUser->hasPermission("$op content translations")))->cachePerPermissions();
    +    $access = AccessResult::allowedIf(($bundle_permission && $this->currentUser->hasPermission("$op content translations")))->cachePerPermissions();
    

    No need to change the variable name $tanslate_permission, use it instead of $bundle_permission

  3. +++ b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTranslationTest.php
    @@ -192,7 +192,7 @@ protected function addEntityTranslation() {
    -    ], 'Save');
    +    ], t('Save'));
    

    I think this change is not required for issue.

  4. +++ b/core/modules/user/tests/src/Functional/UserEditTest.php
    @@ -212,7 +213,7 @@ public function testUserChangeSiteLanguage() {
    -    $this->drupalPostForm('user/' . $webUser->id() . '/translations/add/en/fr', [], 'Save');
    +    $this->drupalPostForm('user/' . $webUser->id() . '/translations/add/en/fr', [], t('Save'));
    

    I think this change is not required for issue.

msuthars’s picture

Assigned: Unassigned » msuthars
Status: Needs work » Needs review
msuthars’s picture

Status: Needs review » Needs work
msuthars’s picture

Assigned: msuthars » Unassigned
Status: Needs work » Needs review
StatusFileSize
new10.66 KB
new2.35 KB

Updated the patch as suggested in #36.

msuthars’s picture

Fixed the phplint issue. Updated the patch.

Status: Needs review » Needs work
msuthars’s picture

Status: Needs work » Needs review
michaellenahan’s picture

Issue summary: View changes
Issue tags: -Amsterdam2019 +Europe2020, +Novice

Removing Europe2020 tag, since this issue was not worked on at Drupalcon Europe 2020.

michaellenahan’s picture

Issue tags: +Amsterdam2019
michaellenahan’s picture

Issue summary: View changes
Issue tags: -Europe2020
tvb’s picture

Status: Needs review » Needs work
Issue tags: -Needs reroll

In a fresh Drupal 9.2.0-dev installation:
* Enable Content Translation module.
* Enable translation for Article and Basic page.
* Create an Article and a Basic page node in English.
* Add a second language.
* Create new role Editor and assign permissions.
* Create new user and assign Editor role.
* Log in as new user.

Permissions for Editor role:
* Create/Delete/Edit translations
* Translate Article content item
* Article: Create new content
* Article: Edit any content

Before applying the patch:
* Article content item: Translate tab is displayed; Edit and Add buttons are listed in the Operations column.
* Basic page content item: Translate tab is displayed; No Edit or Add buttons in Operations column.

The result so far reproduces what is described in the issue summary.

After applying the patch from #40:
* Article content item: Translate tab is displayed; the Add button in the Operations column has disappeared.
* Basic page content item: Translate tab is still displayed

masipila’s picture

Re: #46

Basic page content item: Translate tab is still displayed

I believe this is because the condition still starts as follows:
$condition = $entity instanceof ContentEntityInterface && $entity->access('view')...

... Which is what I was trying to ask in #22 earlier.

I added the tag requesting for issue summary update. We have steps to reproduce and I believe everybody agrees that the current behavior doesn't make sense (that's why we have this issue to begin with). But can we please discuss and agree what the expected result is and then update it to the issue summary?

Markus

jcmartinez’s picture

matsbla’s picture

Issue tags: +Bug Smash Initiative
StatusFileSize
new6.02 KB

Here is an updated patch.

#22

But we still show it if $entity->access('view'). Why view, why not update?

No, we do not show it if $entity->access('view'), but we do not display it if not $entity->access('view'), meaning we do not show the translation tab if the user can't view the entity.

matsbla’s picture

Status: Needs work » Needs review
paulocs’s picture

Assigned: Unassigned » paulocs

I'll review it.

avpaderno’s picture

Title: Translate tab is showing even though content translation permission not set for role » The Translate tab is shown even though the logged-in user doesn't have the permission to translate content
paulocs’s picture

Status: Needs review » Needs work

Hi everyone!
As @masipila said, I think we should update the issue summary with the expected behavior.
What I understand is that if a user has not the permission to translate a specific bundle, it should not be displayed the local task.
But as I tested patch #49, I gave the permission "Translate Article content item" and, in fact, it possible to translate it, but if I go to another content type node which I din't give the permission to translate it, it is possible to see also the 'Translate' local taks.

So moving to NW.

paulocs’s picture

Assigned: paulocs » Unassigned
matsbla’s picture

@paulocs, #53

but if I go to another content type node which I din't give the permission to translate it, it is possible to see also the 'Translate' local taks.

Can you please elaborate on what other permissions the user have? If the user have permission to edit the content, or "translate any entity" they will also be able to translate the content.

paulocs’s picture

StatusFileSize
new40.75 KB

The user which should not see the 'Translate' local task has permission to:

Create/edit/delete translations
Translate Article content item
View published content

When that user access a node from the content type 'Test', it is possible to see the 'Translate' local task.
I added a screen shot from the node that is not an Article.

The user has no permission to:

Translate Teste content item
Translate any entity
Edit the content

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

prudloff’s picture

StatusFileSize
new1.13 KB
new6.07 KB

I tested #49 with an user that has the following permissions:

  • translate editable entities
  • create content translations
  • update content translations
  • delete content translations

And the Translate button is displayed for entities that the user can not edit (and so can not translate).

It seems to be caused by a grouping error in the condition.
This should be evaluated together:

(($account->hasPermission('create content translations') || $account->hasPermission('update content translations') || $account->hasPermission('delete content translations')

So it only returns true if the user has one of these permissions and the bundle permission (or has translate editable entities and can edit the entity).

I updated the patch to add parentheses, however I think the condition could be refactored in order to make it easier to read and maintained.

avpaderno’s picture

Status: Needs work » Needs review
matsbla’s picture

@prudloff
Thank you for spotting that one!

guilhermevp’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new30.33 KB

Patch #58 works as intended. Created a user with the same permissions pointed by the comment #58 and the user is only able to translate content that them are allowed to edit.

...an user that has the following permissions:

  • translate editable entities
  • create content translations
  • update content translations
  • delete content translations

Result:

1

RTBC.

quietone’s picture

Status: Reviewed & tested by the community » Needs work

@guilhermevp, not quite RTBC. It still needs an IS update.

This is tagged for an issue summary update. I suggest adding the template to the IS, update the proposed resolution and add the latest before and after screenshots to the IS.

Setting back to NW for that and leaving novice tag.

init90’s picture

ChrisDarke made their first commit to this issue’s fork.

matsbla’s picture

Issue summary: View changes
Status: Needs work » Needs review
Issue tags: -Needs issue summary update

Update issue summary

darvanen’s picture

Issue summary: View changes
Status: Needs review » Needs work
  1. +++ b/core/modules/content_translation/content_translation.module
    @@ -373,9 +373,17 @@ function content_translation_menu_links_discovered_alter(array &$links) {
       $condition = $entity instanceof ContentEntityInterface && $entity->access('view') &&
         !$entity->getUntranslated()->language()->isLocked() && \Drupal::languageManager()->isMultilingual() && $entity->isTranslatable() &&
    -    ($account->hasPermission('create content translations') || $account->hasPermission('update content translations') || $account->hasPermission('delete content translations') ||
    +    ((($account->hasPermission('create content translations') || $account->hasPermission('update content translations') || $account->hasPermission('delete content translations')) &&
    +    !is_null($bundle_permission) && $account->hasPermission($bundle_permission)) ||
         ($account->hasPermission('translate editable entities') && $entity->access('update')));
       return AccessResult::allowedIf($condition)->cachePerPermissions()->addCacheableDependency($entity);
    

    This has become impossible to parse by eye. Please split up the logic into a few checks/sub-conditions (use the parentheses as a guide) and build $condition from those checks.

    Also try to keep the code within the 80 char limit. This kind of brevity doesn't materially improve performance and greatly decreases our ability to understand what is intended. Use as many lines as you need to make it readable.

    It *looks* to me like #22 should be covered by this but I can't quite tell right now.

  2. +++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationOperationsTest.php
    @@ -67,6 +67,7 @@ class ContentTranslationOperationsTest extends NodeTestBase {
           'create content translations',
           'update content translations',
           'delete content translations',
    +      'translate any entity',
         ]);
       }
    

    Adding the permissions here doesn't test it in isolation, need to refactor the test to check all the various combinations of permissions that allow access here, suggest creating several users in the setup phase named to indicate their permissions combination, then testing the link against each one.

  3. +++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationOperationsTest.php
    @@ -141,7 +142,7 @@ class ContentTranslationOperationsTest extends NodeTestBase {
    -    $user = $this->createUser(['create content translations', 'access content']);
    +    $user = $this->createUser(['create content translations', 'access content', 'translate any entity']);
    

    Same as 2.

  4. +++ b/core/modules/content_translation/tests/src/FunctionalJavascript/ContentTranslationContextualLinksTest.php
    @@ -57,6 +57,7 @@ class ContentTranslationContextualLinksTest extends WebDriverTestBase {
    +      'create content translations',
    

    Same as 2.

  5. +++ b/core/modules/node/tests/src/Functional/NodeAccessLanguageFallbackTest.php
    @@ -71,6 +71,7 @@ class NodeAccessLanguageFallbackTest extends NodeTestBase {
    +      'create content translations',
    

    Same as 2.

A failing test-only patch would greatly help with future reviews.

leolandotan’s picture

Assigned: Unassigned » leolandotan

I'll try to work on this one. Specifically the items mentioned by @darvanen. I may not be able to create a very good test though but I'll do my best on the tests.

leolandotan’s picture

StatusFileSize
new2.54 KB
new6.98 KB

I updated the condition as specified by @darvanen in #67 but I haven't been successful with the tests yet. Just adding my initial work here for additional review.

andypost’s picture

Status: Needs work » Needs review

This change means more tests should be added, so more reviews are welcome

leolandotan’s picture

Assigned: leolandotan » Unassigned

Removing myself from the assigned field since I can't work on the tests at the moment.

darvanen’s picture

Status: Needs review » Needs work

Thanks for the part you were able to do @leolandotan, it looks good to me.

Setting NW for #70 / #67.2-#67.5

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

akhil babu’s picture

StatusFileSize
new30.5 KB
new26.08 KB

I have created a patch with required tests. Functional tests are successfully passed in local. But I could not test Functional javascript tests.

akhil babu’s picture

StatusFileSize
new26.72 KB

Test only patch

akhil babu’s picture

StatusFileSize
new26.72 KB

Typo correction

akhil babu’s picture

akhil babu’s picture

StatusFileSize
new30.51 KB
new26.08 KB

Patch with fixes and tests.

akhil babu’s picture

StatusFileSize
new30.96 KB
new730 bytes

Removing unused variable

akhil babu’s picture

StatusFileSize
new26.72 KB
new30.96 KB

Correcting the selector name in tests as per the failure in #81

akhil babu’s picture

StatusFileSize
new31.9 KB
new27.67 KB

Fixed FunctionalJavascript test logic

akhil babu’s picture

StatusFileSize
new27.61 KB
akhil babu’s picture

Status: Needs work » Needs review

Phew!

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative

This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.

Think this is very close!

For the ContentTranslationOperationsTest tests can we some additional assertions.

$node = $this->drupalCreateNode(['status' => FALSE, 'type' => 'article']);
Think this should be $article_node

Then a basic_node should be created.

Then during each user test should make sure they do have access to things but think we should also check to make they don't have access to other things.

Example if I have access to all can we check both content types
If I have access to just articles can we check that and check I can't translate basic pages.

jmongaras made their first commit to this issue’s fork.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

tohesi’s picture

StatusFileSize
new31.82 KB

Re-rolled for latest 10.1.x.

larskleiner’s picture

StatusFileSize
new4.23 KB

The tests in #90 don't apply on Drupal 10.2.3, I removed them for now.

sakthi_dev made their first commit to this issue’s fork.

sakthi_dev’s picture

StatusFileSize
new4.24 KB

Re-rolled for latest 11.x.

mlahde made their first commit to this issue’s fork.

kekkis’s picture

Assigned: Unassigned » kekkis
kekkis’s picture

Assigned: kekkis » Unassigned

I am working on adding back the tests that were removed because they no longer applied in #91. I'm running into a problem where, in core/modules/content_translation/tests/src/Functional/ContentTranslationContextualLinksTest.php, an operation is tried with an admin user on admin/config/regional/content-language but even though $this->drupalLogin($this->rootUser); has been run, the HTML output states that the user has no access to the page.

I'm wondering whether the new Super user access policy could have something to do with this problem, but from what I've been able to deduce so far, the services.yml in use for these tests is the default.services.yml in sites/default and that has the policy set to true, meaning UID 1 should still be all-powerful. I would be grateful for assistance as this is currently blocking me from advancing with the tests.

rodrigoaguilera’s picture

Issue tags: -Novice

I don't think the remaining tasks in this issues are for novice folks

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

inaw’s picture

StatusFileSize
new2.39 KB

Re-rolled patch #93 for latest 11.4.x.