"Administer flaggings" permission required to get own flagging info by /jsonapi/flagging/*

Created on 1 November 2019, over 5 years ago
Updated 19 February 2025, about 2 months ago

Get /jsonapi/flagging/favorite_product

{
    "jsonapi": {
        "version": "1.0",
        "meta": {
            "links": {
                "self": {
                    "href": "http://jsonapi.org/format/1.0/"
                }
            }
        }
    },
    "data": [],
    "meta": {
        "omitted": {
            "detail": "Some resources have been omitted because of insufficient authorization.",
            "links": {
                "help": {
                    "href": "https://www.drupal.org/docs/8/modules/json-api/filtering#filters-access-control"
                },
                "item--G62eOG1": {
                    "href": "http://tla.ldw/jsonapi/flagging/favorite_product/97dbea14-ee4d-402a-8269-028fa35b953c",
                    "meta": {
                        "rel": "item",
                        "detail": "The current user is not allowed to GET the selected resource. The 'administer flaggings' permission is required."
                    }
                }
            }
        }
    },
    "links": {
        "describedby": {
            "href": "http://tla.ldw/jsonapi/flagging/favorite_product/collection/schema"
        },
        "self": {
            "href": "http://tla.ldw/jsonapi/flagging/favorite_product"
        }
    }
}
🐛 Bug report
Status

Needs work

Version

4.0

Component

Flag core

Created by

🇨🇳China lawxen

Live updates comments and jobs are added and updated live.
  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.71.5 2024