Provide the client with permissions flags for create content

Created on 12 June 2025, 11 days ago

Overview

In πŸ“Œ Pass current user's XB permissions to the XB UI Active we added permission flags for config, and in πŸ“Œ Update `ApiContentControllers::list()` to expose available content entity operations in `meta` Active we added link-rel meta operations for content.

But we need some way to provide permission flags for _creating_ content, as the meta operations require the content to exist already!

Proposed resolution

ExperienceBuilderController needs to:
1. Find all content entities that can use XB
2. For each of them, check 'create' operation requirements (per bundle?).
3. Add the flags on drupalSettings.xb.permissions

Expand \Drupal\Tests\experience_builder\Kernel\Controller\ExperienceBuilderControllerTest::testControllerExposedPermissions

User interface changes

The UI will be able to check access to show the pertinent operations.

πŸ“Œ Task
Status

Active

Version

0.0

Component

Page builder

Created by

πŸ‡ͺπŸ‡ΈSpain penyaskito Seville πŸ’ƒ, Spain πŸ‡ͺπŸ‡Έ, UTC+2 πŸ‡ͺπŸ‡Ί

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024