Admin page assertion not working when trying to save a node

Created on 20 June 2023, over 1 year ago
Updated 21 June 2023, over 1 year ago

Problem/Motivation

When using the Protected forms, it also spreads to the 'node' editing page, and will try to apply the validation when saving a node.

Steps to reproduce

Install the module and set something on the 'Reject Pattern' field.

Visit content page (/admin/content)
Create or edit any content with an account different from admin, but with node editting/save permissions. Add some 'rejected words' on it. Save it.

Proposed resolution

Update \Drupal::request()->getRequestUri())[1] == 'admin' with something more reliable.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇷Brazil daniel_arend

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

Comments & Activities

Production build 0.71.5 2024