Strict check results in no options

Created on 28 September 2022, about 2 years ago
Updated 11 April 2023, over 1 year ago

Problem/Motivation

Release 8.x-1.0 introduced code that performs strict checking of data in src/Form/AssignUserForm.php (getChildren() function): https://www.drupal.org/project/workbench_access/releases/8.x-1.0 - "Fix usage of == to === where appropriate."

This has resulted in the following message being output when checking user's access settings (/user/*/workbench_access):
You do not have permission to manage any assignments.

Steps to reproduce

* Set up an access scheme that is based on Taxonomy
* Attempt to edit a user's access settings (/user/*/workbench_access)
* The Taxonomy value appears to be a string but the value of the access scheme tree is an integer. Therefore the strict checking fails and no options are returned.

Proposed resolution

Unsure. Perhaps undo the strict checking change or provide information on how we can ensure that the Taxonomy values are integers instead of strings (perhaps I missed something when setting this up initially?)

Remaining tasks

* Confirm whether a fix is required or if it requires documentation on how to ensure that integers are output when using taxonomy for the access scheme

User interface changes

Unlikely

API changes

Unlikely

Data model changes

Unlikely

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

🇦🇺Australia marc.groth

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia marc.groth

    Thanks agentrickard. It looks like the latest version of this module (2.0.1) takes care of this by way of user permissions (/admin/people/permissions/module/workbench_access).

    There is a way to get this working now so this is no longer an issue.

Production build 0.71.5 2024