Commit 92041a14 authored by Gaurav Kapoor's avatar Gaurav Kapoor Committed by Gaurav Kapoor
Browse files

Issue #3263392 by gaurav.kapoor: Remove unsupported core key from .info.yml file

parent 91b60dc3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ INTRODUCTION
This is Unpublished 404 Module.

 * It displays 404 page not found instead of 403 access denied if user tries to
   access any unauthorised or unpublished node.
   access any unauthorized or unpublished node.

 * For a full description of the module, visit the project page:
   https://www.drupal.org/project/unpublished_404
+2 −2
Original line number Diff line number Diff line
{
  "name": "Unpublished 404",
  "description": "Displays 404 page not found instead of 403 access denied if user tries to access any unauthorised or unpublished node.",
  "name": "drupal/unpublished_404",
  "description": "Displays 404 page not found instead of 403 access denied if user tries to access any unauthorized or unpublished node.",
  "type": "drupal-module",
  "keywords": ["Drupal", "Unpublished 404"],
  "homepage": "http://drupal.org/project/unpublished_404",
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ class NotFound extends HttpExceptionSubscriberBase {
   *   The event to process.
   */
  public function on403(ExceptionEvent $event) {
    // Check if current user has pemission to view own unpublished content.
    // Check if current user has permission to view own unpublished content.
    if ($this->account && !$this->account->hasPermission('view own unpublished content')) {
      $request = $event->getRequest();
      if ($node = $request->attributes->get('node')) {
+1 −2
Original line number Diff line number Diff line
name: Unpublished 404
type: module
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^8.8 || ^9
description: Replaces 403 Forbidden responses with 404 Not Found responses if an unauthorized user attempts to visit an unpublished node.