- πͺπΈSpain eduardo morales alberti Spain, πͺπΊ
Same problem here!
I will try the patch - last update
over 1 year ago 30,341 pass - @eduardo-morales-alberti opened merge request.
- last update
over 1 year ago 29,911 pass - @eduardo-morales-alberti opened merge request.
- πͺπΈSpain eduardo morales alberti Spain, πͺπΊ
Added patch from the MR.
- Status changed to RTBC
over 1 year ago 9:40am 1 August 2023 - last update
over 1 year ago Patch Failed to Apply - πͺπΈSpain eduardo morales alberti Spain, πͺπΊ
@smustgrave is there anything else that should be reviewed? In our case, the patch seems to work well.
- Status changed to Needs work
over 1 year ago 2:07pm 1 August 2023 - πΊπΈUnited States smustgrave
Left some comments on the MR and this will still need a test
- πͺπΈSpain eduardo morales alberti Spain, πͺπΊ
This seems that is not working on the create operation because the method getTranslationFromContext checks the translations that already exist.
public function getTranslationFromContext(EntityInterface $entity, $langcode = NULL, $context = []) { $translation = $entity; if ($entity instanceof TranslatableDataInterface && count($entity->getTranslationLanguages()) > 1) {
- π¨πSwitzerland berdir Switzerland
I'm running into an edge case that's even trickier, in combination with π Layout builder fails to assign inline block access dependencies for the overrides section storage on entities with pending revisions Needs work as well as contrib layout builder modules, somehow the revision doesn't match what layout builder has.
But I suspect it's neither this nor the other issue, because what matters for layout builder is the revision id, which is the same. And i'm also seeing access denied results within the layout builder edit form for the delete button access check, so it's also confused about that. The site also uses modules like layout_builder_st and the content was cloned, so there so many possible things that could have and did go wrong.
Just documenting my findings for now in case someone else runs into a similar issue. Considering a custom patch that just grants full unconditional access to anything as we have no access restrictions for editors.
- π·πΈSerbia miksha
I have a translator role that doesn't have edit permissions. I also encountered the same when adding/updating translations with this role that AJAX error happens with message that user needs edit permission for entity type where media field is calling media library in order to change field value. I made a patch for this but not sure if it's the right approach or if it covers all situations but what I tested and works is that user with just `translate any entity` and without `edit` permissions is able to either create new translation and also update media field. Editing existing translation and updating media field also works. Solution also covers translating entities other than nodes e.g. taxonomies with media field etc.
- last update
over 1 year ago Patch Failed to Apply - π¬π§United Kingdom matt b
I've just hit the same issue. I'm busy enabling translation on my site, having had issues years back with Media when it was a contrib module, I'd resisted implementing. Enabled it in D10 and hit this. Media does give a nice interface, but this issue means it is still unusable.
I tried @miksha's patch ( https://www.drupal.org/project/drupal/issues/3197416#comment-15325059 π MediaLibraryFieldWidgetOpener::checkAccess denies access when modifying field values on a translated entity revision Needs work ) and it would not apply.
- Status changed to RTBC
11 months ago 7:38am 25 May 2024 - π¬π§United Kingdom matt b
I've applied both patchs and the issue is fixed for me.
- Status changed to Needs work
11 months ago 4:18am 26 May 2024 The Needs Review Queue Bot β tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- π¬π§United Kingdom matt b
Just re-ran composer update and second patch (#20) won't apply, but I'm working fine with the first patch (#13)
- Merge request !9450Resolve #3197416 "Medialibrary fieldwidgetopenercheckaccess denies access on a translated entity revision" β (Open) created by miksha
- Status changed to Needs review
8 months ago 3:06pm 9 September 2024 - π·πΈSerbia miksha
I tested 11.x locally and it still has the same issue that my patch in #20 fixes. I created a new MR against 11.x and combined changes from both #13 & #20 patches. For me this fixes the AJAX error when translator role user has permissions like defined in issue description under Steps to reproduce but at the same time has no edit permissions.
- Status changed to Needs work
8 months ago 6:43pm 9 September 2024 - πΊπΈUnited States smustgrave
Was previously tagged for tests so moving to NW for those.