Administer vocabularies perm needed for certain jsonapi queries

Created on 29 March 2022, about 2 years ago
Updated 3 March 2023, over 1 year ago

Problem/Motivation

I have a very specific jsonapi request that is failing unless I grant the user the "Administer vocabularies and terms" permission.

Steps to reproduce

I have a content type that has taxonomy fields and I'm querying that content type using jsonapi requests.

This filter works without the permission:

[country] => Array
        (
            [condition] => Array
                (
                    [path] => field_political_district_set.field_country
                    [operator] => =
                    [value] = CA
                )
        )

But this filter does not work unless I grant the permission:

   [org-group] => Array
        (
            [group] => Array
                (
                    [conjunction] => OR
                )

        )

    [field_base_id] => Array
        (
            [condition] => Array
                (
                    [path] => field_political_district_set.field_organization.field_base_id
                    [value] => 1
                    [memberOf] => org-group
                )

        )

   [country] => Array
        (
            [condition] => Array
                (
                    [path] => field_political_district_set.field_country
                    [operator] => =
                    [value] => CA
                    [memberOf] => org-group
                )

        )

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Closed: outdated

Version

9.5

Component
JSON APIΒ  β†’

Last updated 2 days ago

Created by

πŸ‡¨πŸ‡¦Canada lambic

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.

Production build 0.69.0 2024