Autocomplete widget is not available for content editor role

Created on 11 April 2023, over 1 year ago
Updated 18 April 2023, over 1 year ago

Problem/Motivation

Autocomplete widget is not available for "Content Editor" role. This is a follow-up of a closed issue:
https://www.drupal.org/project/existing_values_autocomplete_widget/issue...

Steps to reproduce

  1. Enabled the Existing Values Autocomplete Widget (2.0.0-beta1) on a fresh Drupal 9.5.5 installation
  2. Added text field to a "Basic Page" content type
  3. Enabled "Autocomplete: existing values" for the text field
  4. Created several nodes with test values in the text field
  5. Created new user account with "Content editor" role

When I edit existing or create a new basic page node as administrator, autocomplete widget is available and previously entered values are being displayed and can be selected. If I login as a user with "Content editor" role, I'm able to create/edit basic page nodes, but the autocomplete widget is not available (see attached screenshots).
Only when I added the "Bypass content access control" permission to "Content editor" role, the autocomplete editor became available.

@Anybody I also tested it on simplytest.me and the same problem exists, although simplytest.me doesn't have the latest version of your module. It has alpha1, instead of beta1.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States gintass

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @gintass
  • 🇮🇹Italy robertom

    @gintass the commit for #3204475: Review access checks isn't included in 2.0.0-beta1 version

    you need to install the dev version or wait for the 2.0.0-beta2 version

  • 🇺🇸United States gintass

    @robertom I was thinking about installing the dev version, but then I saw that beta1 has the same release date as dev, so I though that it already has a patch. Now I installed the dev version and can confirm that site editors can use the autocomplete widget without extra permissions. Thank you!

Production build 0.71.5 2024