Access denied warning on "Delete" operation.

Created on 19 August 2024, 4 months ago
Updated 27 August 2024, 4 months ago

Problem/Motivation

When trying to delete a page template with enabled Content locking the following error has been raised:

Path: /admin/lock/create/node/29/en/delete?destination=/node/29/delete%3Fdestination%3D/admin/content/templates&_wrapper_format=drupal_ajax. Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: Page template nodes cannot be modified. in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 118 of /var/core/www/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).

Steps to reproduce

1. Create page template.
2. Go to the Templates list
3. Use the "Delete" operation.

Proposed resolution

Provide additional condition in the \Drupal\pate\Access\PateNodeAccessHandler

📌 Task
Status

Needs review

Version

1.2

Component

Code

Created by

🇺🇦Ukraine v.dovhaliuk

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

Comments & Activities

Production build 0.71.5 2024