Operation "view" for JSONAPI requests

Created on 17 December 2024, about 2 months ago

Problem/Motivation

Currently, we can't request data via JSONAPI requests to view an asset. The system may need that for some reasons (for example, decoupled reasons)

Steps to reproduce

1. Download and install the module JSONAPI and JSONAPI Extras
2. Download and install the module Asset Injector
3. Enable the resource for Assets CSS or JS
4. Open the resource in a new browser tab

Proposed resolution

1. Add a new custom permission for this purpose JSONAPI: View CSS/JS Asset entity
2. Add an additional check for AssetInjectorAccessControlHandler so, we'll allow the operation "view" for JSONAPI requests but via the permission check
3. Write a patch for this purpose

Remaining tasks

Write the patch.

User interface changes

No.

API changes

No.

Data model changes

No.

✨ Feature request
Status

Active

Version

2.21

Component

Code

Created by

πŸ‡²πŸ‡©Moldova andrei.vesterli Chisinau

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

Comments & Activities

Production build 0.71.5 2024