Users without permission still see action links

Created on 7 February 2025, about 1 month ago

Hi, decided to try this (much requested) feature for the first time. I have an editor user that has the permission to "View trash bin" but none of the others. This user still see the action links to restore and purge, which then gives a 404.

If they try to see the node it self I get this error message multiple times:

Deprecated function: explode(): Passing null to parameter #2 ($string) of type string is deprecated in Drupal\trash\RouteProcessor\TrashRouteProcessor->processOutbound() (line 29 of modules/contrib/trash/src/RouteProcessor/TrashRouteProcessor.php).
Drupal\trash\RouteProcessor\TrashRouteProcessor->processOutbound() (Line: 52)
Drupal\Core\RouteProcessor\RouteProcessorManager->processOutbound() (Line: 408)
Drupal\Core\Routing\UrlGenerator->processRoute() (Line: 288)
Drupal\Core\Routing\UrlGenerator->generateFromRoute() (Line: 105)
Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute() (Line: 68)
Drupal\Core\Routing\RedirectDestination->get() (Line: 51)
Drupal\Core\Routing\RedirectDestination->getAsArray() (Line: 174)
Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriber->makeSubrequest() (Line: 132)
Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriber->on404() (Line: 109)
Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase->onException() (Line: 246)
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}() (Line: 206)
Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (Line: 56)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (Line: 241)
Symfony\Component\HttpKernel\HttpKernel->handleThrowable() (Line: 91)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 709)
Drupal\Core\DrupalKernel->handle() (Line: 19)

This error is not there for the admin user, then I see the node with the unpublished pink background.

Drupal 11.1.2, php 8.3, tried with both Gin and Claro admin theme.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇳🇴Norway vegardjo

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