Improve usage of permissions

Created on 14 April 2025, 11 days ago

Overview

Permissions in XB are mixed between literal string administer_patterns and constants Pattern::ADMIN_PERMISSIONS.

To avoid having bugs related with a misspelling in the permission string, the use of the permission's constant is (and should be) encouraged.

This will help developers use the constant instead of the literal string.

Proposed resolution

  1. Replace all the literal strings with their related constants
  2. Document in experience_builder.permissions.yml where is the permission defined to help other developers
πŸ“Œ Task
Status

Active

Version

0.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain isholgueras

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